Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #11526
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!.POSTED!not-for-mail |
|---|---|
| From | Lew <noone@lewscanon.com> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Blocks for scope control |
| Date | Fri, 20 Jan 2012 11:05:08 -0800 |
| Organization | albasani.net |
| Lines | 33 |
| Message-ID | <jfcdt4$tjp$1@news.albasani.net> (permalink) |
| References | <dBCQq.122$d%2.16@newsfe07.iad> <block-20120115171817@ram.dialup.fu-berlin.de> <omitable-20120120163400@ram.dialup.fu-berlin.de> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8; format=flowed |
| Content-Transfer-Encoding | 8bit |
| X-Trace | news.albasani.net E3RG5OdkAeojQJlRkPovYwkUI6p+YUMXRsZQzJrD4H/JNPbyUqIV6kB4R9/RKBEdfoOcmiYJy6xcnLIFiTU1PwDgsqHSNEkm2zW4YBiAX6gjeF7d+4pnPap1XQU3Noyh |
| NNTP-Posting-Date | Fri, 20 Jan 2012 19:05:08 +0000 (UTC) |
| Injection-Info | news.albasani.net; logging-data="0EP38YLShBU1Eoyaks3BVyVB3Rujx+LaulatSpF7AhT31P1paAkhkC3sjqxOLo8rgPzl5tH5bYb87nEkFuNOG9PXwgFVxa+KV9l4t2QXGAi31MPRhqjBMB6WcVn5TcuG"; mail-complaints-to="abuse@albasani.net" |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20111124 Thunderbird/8.0 |
| In-Reply-To | <omitable-20120120163400@ram.dialup.fu-berlin.de> |
| Cancel-Lock | sha1:KL2putTOXWDJwBsDbmjHRrWTt0w= |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:11526 |
Show key headers only | View raw
On 01/20/2012 07:34 AM, Stefan Ram wrote:
> ram@zedat.fu-berlin.de (Stefan Ram) writes:
>> { final Button button = new Button(); frame.add( button ); }
>
> I also use blocks to clarify the scope of a comment
> (when extracting a method is no better solution):
>
> alpha();
> { /* add a button to the frame */
> final Button button = new Button();
> frame.add( button ); }
> beta();
>
> I teach both the use of omitable [sic] »final« keywords and the
> use of omitable blocks (which both serve only to enhance
> readability) in my classes right from the beginnig. In fact,
> I start to teach /all/ variable declaration and parameter
> declarations with »final« and later explain when »final« can
> be removed.
>
> (Many English dictionaries do not have an entry »omitable« [sic].
> This word is intended to mean the following above: An omitable [sic]
> part of the source code often [but not necessarily always]
> can be removed without changing the behavior of the program.)
Dictionaries frequently do not list all possible inflections of a word. In
this case they undoubtedly leave it to the normal rules of English to produce
"omittable" (note the double "t") without a separate entry.
--
Lew
Honi soit qui mal y pense.
http://upload.wikimedia.org/wikipedia/commons/c/cf/Friz.jpg
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Blocks for scope control Arved Sandstrom <asandstrom3minus1@eastlink.ca> - 2012-01-15 11:50 -0400
Re: Blocks for scope control Robert Klemme <shortcutter@googlemail.com> - 2012-01-15 17:10 +0100
Re: Blocks for scope control Robert Klemme <shortcutter@googlemail.com> - 2012-01-15 17:32 +0100
Re: Blocks for scope control Lew <noone@lewscanon.com> - 2012-01-15 11:21 -0800
Re: Blocks for scope control Robert Klemme <shortcutter@googlemail.com> - 2012-01-16 07:59 +0100
Re: Blocks for scope control markspace <-@.> - 2012-01-15 09:57 -0800
Re: Blocks for scope control Lew <noone@lewscanon.com> - 2012-01-15 11:28 -0800
Re: Blocks for scope control Lew <noone@lewscanon.com> - 2012-01-15 11:00 -0800
Re: Blocks for scope control Arved Sandstrom <asandstrom3minus1@eastlink.ca> - 2012-01-15 17:49 -0400
Re: Blocks for scope control Lew <noone@lewscanon.com> - 2012-01-15 15:45 -0800
Re: Blocks for scope control Arved Sandstrom <asandstrom3minus1@eastlink.ca> - 2012-01-19 21:54 -0400
Re: Blocks for scope control Robert Klemme <shortcutter@googlemail.com> - 2012-01-20 08:41 +0100
Re: Blocks for scope control Lew <noone@lewscanon.com> - 2012-01-20 15:24 -0800
Re: Blocks for scope control Arved Sandstrom <asandstrom3minus1@eastlink.ca> - 2012-01-20 19:30 -0400
Re: Blocks for scope control Lew <noone@lewscanon.com> - 2012-01-20 15:54 -0800
Re: Blocks for scope control Robert Klemme <shortcutter@googlemail.com> - 2012-01-16 07:55 +0100
Re: Blocks for scope control Arved Sandstrom <asandstrom3minus1@eastlink.ca> - 2012-01-19 21:16 -0400
Re: Blocks for scope control Robert Klemme <shortcutter@googlemail.com> - 2012-01-21 13:25 +0100
Re: Blocks for scope control Arved Sandstrom <asandstrom3minus1@eastlink.ca> - 2012-01-21 10:41 -0400
Re: Blocks for scope control Robert Klemme <shortcutter@googlemail.com> - 2012-01-22 13:03 +0100
Re: Blocks for scope control Roedy Green <see_website@mindprod.com.invalid> - 2012-01-16 06:09 -0800
Re: Blocks for scope control Henk van Voorthuijsen <voorth@xs4all.nl> - 2012-01-16 07:03 -0800
Re: Blocks for scope control Arne Vajhøj <arne@vajhoej.dk> - 2012-01-17 18:43 -0500
Re: Blocks for scope control Lew <noone@lewscanon.com> - 2012-01-20 11:05 -0800
Re: Blocks for scope control Gene Wirchenko <genew@ocis.net> - 2012-01-20 12:11 -0800
Re: Blocks for scope control Arne Vajhøj <arne@vajhoej.dk> - 2012-02-06 21:24 -0500
csiph-web