Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!news.musoftware.de!wum.musoftware.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: blmblm@myrealbox.com Newsgroups: comp.lang.java.programmer Subject: Re: A question about some long java code that has getters/setters Date: 25 Jul 2011 19:44:44 GMT Organization: None Lines: 41 Message-ID: <995vdbF6kpU2@mid.individual.net> References: <990fdfF8n9U3@mid.individual.net> <4e2b4456$0$306$14726298@news.sunsite.dk> X-Trace: individual.net 5jcOXq4OJ2kltO+MqS/iwQJaVHHhDgmVFGwoaKwU/CwqjTgnG8 X-Orig-Path: not-for-mail Cancel-Lock: sha1:JCaGTwMMvXhmqfBAZimJV4cnmJo= X-Newsreader: trn 4.0-test76 (Apr 2, 2001) Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:6550 In article , Steve Sobol wrote: > In article <4e2b4456$0$306$14726298@news.sunsite.dk>, Arne Vajhøj > says... > > > > On 7/23/2011 1:41 PM, blmblm@myrealbox.com wrote: > > > >> It's also bad practice to use import-on-demand (import '*') rather > > >> than single-type imports. > > > > > > In code meant for compiling and execution, agreed. In code meant > > > for display in dead-tree documentation, though .... > > > > Having specific imports makes it easier to see where the classes > > come from. Well, there is that. Good point. > > I would tend to say that is even more important for dead tree docs > > than for code. I'm not sure I agree, but maybe you can convince me .... Why? > I agree. And I can't speak for other IDE's, but in Eclipse, updating > your list of specific imports can be done by hitting Ctrl-Shift-O. > ("Organize Imports") > > Takes a fraction of a second :) True, and one of the reasons I find Eclipse a useful tool despite my strong preference for editing any kind of text with, um, a different tool. :-)? However, my point was not that it's difficult to generate a list of specific imports -- I know better -- but that including one in printed material clutters up the page with details unlikely to be important (though obviously not everyone agrees with me on that). -- B. L. Massingill ObDisclaimer: I don't speak for my employers; they return the favor.