Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #21049
| Newsgroups | comp.lang.java.programmer |
|---|---|
| Date | 2013-01-06 09:58 -0800 |
| References | <public-20130106091348@ram.dialup.fu-berlin.de> <a507821e-173c-447f-a310-bb98f425f097@googlegroups.com> <e1778471-c18f-46e6-9a7e-d7d312d684c3@googlegroups.com> <bdc51fed-5efc-4380-8162-6f4309155239@googlegroups.com> |
| Message-ID | <8889b1c7-4198-4d54-8fbc-8fa0ef8608a3@googlegroups.com> (permalink) |
| Subject | Re: "Hello world!" without a public class? |
| From | Lew <lewbloch@gmail.com> |
Aryeh M. Friedman wrote: > Lew wrote: >> Aryeh M. Friedman wrote: >>>> 1.) »public class HelloWorldApp« (because this is most common IIRC) >>> This the most common they are going to run into in real life and when you get in inheritance explain the difference between the 4 options. You should also point out (I know I will get flamed for this ;-)) that the only time you do not want to use "public" is in inner classes (which in my opinion should be outlawed anyways) > >> Do you really mean just inner classes? Well? >> Would you ban all nested classes outright? > >> It would be a very, very boneheaded thing to outlaw inner classes. > >> You'd destroy a common idiom for declaring listeners. You'd make lambdas >> impossible. You'd kill one of the most expressive features of Java, that >> was introduced to the language in the first place because of its great >> power. > > And get rid of one the most unreadable/widely abused parts of all Java code? Conclusion not in evidence. > Sounds good to me... almost everything done with inner/nested classes can be Which, inner or non-inner nested? > done cleaner with post 1.5 constructs that do not require impossible to read code. Show the idioms you have in mind. Show how nested classes are "impossible to read". They aren't. Unless you don't know Java, in which case don't bother arguing about how to improve it. Show that what you have in mind is easier to read. Show how you'd do lambdas without them. For God's sake, provide some evidence and logic for your point. Otherwise it's just your personal, non-engineering-based and utterly irrelevant opinion. -- Lew
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: "Hello world!" without a public class? "Aryeh M. Friedman" <Aryeh.Friedman@gmail.com> - 2013-01-06 02:10 -0800
Re: "Hello world!" without a public class? Lew <lewbloch@gmail.com> - 2013-01-06 09:43 -0800
Re: "Hello world!" without a public class? "Aryeh M. Friedman" <Aryeh.Friedman@gmail.com> - 2013-01-06 09:51 -0800
Re: "Hello world!" without a public class? Lew <lewbloch@gmail.com> - 2013-01-06 09:58 -0800
Re: "Hello world!" without a public class? "Aryeh M. Friedman" <Aryeh.Friedman@gmail.com> - 2013-01-06 10:48 -0800
Re: "Hello world!" without a public class? Arne Vajhøj <arne@vajhoej.dk> - 2013-01-06 16:07 -0500
Re: "Hello world!" without a public class? "Aryeh M. Friedman" <Aryeh.Friedman@gmail.com> - 2013-01-06 13:21 -0800
Re: "Hello world!" without a public class? Arne Vajhøj <arne@vajhoej.dk> - 2013-01-06 16:43 -0500
Re: "Hello world!" without a public class? Lew <lewbloch@gmail.com> - 2013-01-06 17:24 -0800
Re: "Hello world!" without a public class? Arne Vajhøj <arne@vajhoej.dk> - 2013-01-06 15:59 -0500
Re: "Hello world!" without a public class? "Aryeh M. Friedman" <Aryeh.Friedman@gmail.com> - 2013-01-06 13:22 -0800
Re: "Hello world!" without a public class? Arne Vajhøj <arne@vajhoej.dk> - 2013-01-06 16:35 -0500
csiph-web