Here's a line from my code:

for ( int y = 0 ; x < lines ; y++ ) for ( int x = 0 ; x < columns ; x+
+ ) sum += cells[y][x];

all on one line. Perfectly fine in my book. Its less than 100
characters in length, all variables are sensibly named, and the entire
operation 'feels' like a single operation and not as an ordeal that
warrants 2 indents. Compared to the 'appropriate' way, granting at
least a reprieve from the strange space-wasting notion of putting
braces on their own dedicated line, a savings of 80% (4 out of 5 lines
eliminated).

On Sep 9, 8:14 pm, Viktor Klang <viktor.kl...@gmail.com> wrote:
> Typo, should be 50%
>
> Unless you do:
>
> If(...)
> { ... }
>
> On Sep 9, 2009 6:18 PM, "Ben Schulz" <ya...@gmx.net> wrote:
>
> > You lose 60% vertical overview.
>
> Great stat, how do you figure?
>
> With kind regards
> Ben
>
> --~--~---------~--~----~------------~-------~--~----~ You received this
> message because you are subs...
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "The 
Java Posse" group.
To post to this group, send email to javaposse@googlegroups.com
To unsubscribe from this group, send email to 
javaposse+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/javaposse?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to