Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #23903

Re: Indentation styles

From Wojtek <nowhere@a.com>
Newsgroups comp.lang.java.programmer
Subject Re: Indentation styles
Date 2013-05-07 13:35 -0700
Organization A noiseless patient Spider
Message-ID <mn.3b2f7dd517c15b2f.70216@a.com> (permalink)
References <rationale-20130507160938@ram.dialup.fu-berlin.de> <kmb7vl$d68$1@dont-email.me> <edit-20130507180607@ram.dialup.fu-berlin.de> <xI2dnZbBJ5yosxTMnZ2dnUVZ8sudnZ2d@bt.com>

Show all headers | View raw


lipska the kat wrote :
> On 07/05/13 17:11, Stefan Ram wrote:
>> Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> writes:
>>> ... and subsequently decided that I didn't want to bar() after all,
>>
> <snippage>
>
>> ... What I do /not/ like that much is:
>>
>> void alpha() {
>>    beta();
>>    gamma(); ...
>>
>
> Ah, my favorite style, I can't see why anyone would want or
> need anything else. I've been known to reformat code with a particularly 
> irritating bracketing style but life is too short so generally now I try to 
> live with it. But really ...
>
> void alpha() {
>      beta();
>      gamma();
> }
>
> Is a thing of beauty and a joy to behold, it's all you need :-)

Hmmm, I prefer my braces on their own line. In your style I am forever 
chasing my eye around the screen trying to find out if there is a 
brace, whereas a brace on a separate line stands out. YMMV but IMHO it 
is a faster way to read code.

-- 
Wojtek :-)

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: Indentation styles Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2013-05-07 17:56 +0200
  Re: Indentation styles lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-05-07 17:39 +0100
    Re: Indentation styles Wojtek <nowhere@a.com> - 2013-05-07 13:35 -0700
      Re: Indentation styles Martin Gregorie <martin@address-in-sig.invalid> - 2013-05-07 21:29 +0000
        Re: Indentation styles Arved Sandstrom <asandstrom2@eastlink.ca> - 2013-05-08 17:56 -0300
          Re: Indentation styles Arne Vajhøj <arne@vajhoej.dk> - 2013-05-12 22:07 -0400
            Re: Indentation styles Gene Wirchenko <genew@telus.net> - 2013-05-13 11:02 -0700
              Re: Indentation styles Arne Vajhøj <arne@vajhoej.dk> - 2013-05-13 19:04 -0400
                Re: Indentation styles Jim Gibson <jimsgibson@gmail.com> - 2013-05-13 17:34 -0700
                Re: Indentation styles Lew <lewbloch@gmail.com> - 2013-05-13 17:44 -0700
                Re: Indentation styles lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-05-14 09:26 +0100
                Re: Indentation styles Jim Gibson <jimsgibson@gmail.com> - 2013-05-14 10:23 -0700
                Re: Indentation styles Arne Vajhøj <arne@vajhoej.dk> - 2013-05-17 19:43 -0400
                Re: Indentation styles Arne Vajhøj <arne@vajhoej.dk> - 2013-05-17 19:42 -0400
                Re: Indentation styles Arne Vajhøj <arne@vajhoej.dk> - 2013-05-13 20:53 -0400
                Re: Indentation styles Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2013-05-14 13:07 +0200
                Re: Indentation styles Arved Sandstrom <asandstrom2@eastlink.ca> - 2013-05-15 18:47 -0300
                Re: Indentation styles Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2013-05-16 05:28 +0200
                Re: Indentation styles Arved Sandstrom <asandstrom2@eastlink.ca> - 2013-05-17 19:44 -0300
                Re: Indentation styles Stanimir Stamenkov <s7an10@netscape.net> - 2013-05-26 20:35 +0300
      Re: Indentation styles Joerg Meier <joergmmeier@arcor.de> - 2013-05-08 00:00 +0200
      Re: Indentation styles Gene Wirchenko <genew@telus.net> - 2013-05-08 11:12 -0700
  Re: Indentation styles Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2013-05-07 23:57 +0200

csiph-web