Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #35577
| From | Arne Vajhøj <arne@vajhoej.dk> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Changing accessor on public static class |
| Date | 2016-09-08 19:32 -0400 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <nqsse7$16ep$2@gioia.aioe.org> (permalink) |
| References | (4 earlier) <nqq5nk$vad$1@gioia.aioe.org> <6d2c31d9-1701-404e-b76d-1d1c6510a411@googlegroups.com> <nqrm3k$tl8$1@dont-email.me> <36119403-c21d-422d-8d4b-a3378e27f354@googlegroups.com> <nqrreq$grr$1@dont-email.me> |
On 9/8/2016 10:09 AM, Eric Sosman wrote: > On 9/8/2016 9:35 AM, Eric Douglas wrote: >> On Thursday, September 8, 2016 at 8:38:33 AM UTC-4, Eric Sosman wrote: >>> Do you have a copy of "Effective Java" by Joshua Bloch? If not, >>> I strongly recommend you get one; it's an excellent work that I think >>> will improve just about anyone's Java. >>> >>> When you get the book, read "Item 18: Favor static member classes >>> over nonstatic" for Bloch's take on the pros and cons of static nested >>> classes vs. inner classes. >> >> I don't have a copy but I searched and found it online. >> https://github.com/HackathonHackers/programming-ebooks/blob/master/Java/Effective%20Java%20(2nd%20Edition).pdf >> >> >> This was actually item 22, and I'm not sure the use case for static >> applies to any of my inner classes. I believe all inner classes I've >> written are private classes and normally if not always require >> references to variables and/or methods of the outer class. > > In my copy, Item 22 is "Replace function pointers with classes and > interfaces." (Perhaps you found an edition newer than my venerable 2004 > "7th printing.") I still recommend obtaining the book; it's a good 'un. It is 18 in first edition and 22 in second edition. (yes - I got both) Arne
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Changing accessor on public static class mike <mikaelpetterson@hotmail.com> - 2016-09-06 00:53 -0700
Re: Changing accessor on public static class Alberto Salvati <zzzato@gmail.com> - 2016-09-06 01:12 -0700
Re: Changing accessor on public static class Eric Sosman <esosman@comcast-dot-net.invalid> - 2016-09-06 09:08 -0400
Re: Changing accessor on public static class Andreas Leitgeb <avl@logic.at> - 2016-09-06 23:00 +0000
Re: Changing accessor on public static class Eric Sosman <esosman@comcast-dot-net.invalid> - 2016-09-07 07:48 -0400
Re: Changing accessor on public static class Eric Douglas <e.d.programmer@gmail.com> - 2016-09-06 07:00 -0700
Re: Changing accessor on public static class Arne Vajhøj <arne@vajhoej.dk> - 2016-09-06 19:31 -0400
Re: Changing accessor on public static class Eric Douglas <e.d.programmer@gmail.com> - 2016-09-07 04:47 -0700
Re: Changing accessor on public static class Arne Vajhøj <arne@vajhoej.dk> - 2016-09-07 18:52 -0400
Re: Changing accessor on public static class Eric Douglas <e.d.programmer@gmail.com> - 2016-09-08 04:54 -0700
Re: Changing accessor on public static class Eric Sosman <esosman@comcast-dot-net.invalid> - 2016-09-08 08:38 -0400
Re: Changing accessor on public static class Eric Douglas <e.d.programmer@gmail.com> - 2016-09-08 06:35 -0700
Re: Changing accessor on public static class Eric Sosman <esosman@comcast-dot-net.invalid> - 2016-09-08 10:09 -0400
Re: Changing accessor on public static class Eric Douglas <e.d.programmer@gmail.com> - 2016-09-08 08:18 -0700
Re: Changing accessor on public static class Eric Douglas <e.d.programmer@gmail.com> - 2016-09-08 08:37 -0700
Re: Changing accessor on public static class Arne Vajhøj <arne@vajhoej.dk> - 2016-09-08 19:34 -0400
Re: Changing accessor on public static class Arne Vajhøj <arne@vajhoej.dk> - 2016-09-08 19:32 -0400
Re: Changing accessor on public static class Arne Vajhøj <arne@vajhoej.dk> - 2016-09-08 19:30 -0400
Re: Changing accessor on public static class Arne Vajhøj <arne@vajhoej.dk> - 2016-09-08 21:50 -0400
Re: Changing accessor on public static class Lew <lewbloch@gmail.com> - 2016-09-13 17:44 -0700
Re: Changing accessor on public static class Lew <lewbloch@gmail.com> - 2016-09-13 17:42 -0700
Re: Changing accessor on public static class Arne Vajhøj <arne@vajhoej.dk> - 2016-09-06 19:33 -0400
Re: Changing accessor on public static class Lew <lewbloch@gmail.com> - 2016-09-13 17:39 -0700
csiph-web