In a word, "yuck".

I'll skip braces but not newlines or indentation -- I quickly get lost 
in stuff like this of my nemesis

if ( foo < bar ) baz( bar ); else baz( foo );

all on one line -- again, yuck.

Reinier Zwitserloot wrote:
> 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 <[email protected]> wrote:
>   
>> Typo, should be 50%
>>
>> Unless you do:
>>
>> If(...)
>> { ... }
>>
>> On Sep 9, 2009 6:18 PM, "Ben Schulz" <[email protected]> wrote:
>>
>>     
>>> You lose 60% vertical overview.
>>>       
>> Great stat, how do you figure?
>>
>> With kind regards
>> Ben
>>
>> >
>
>   


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "The 
Java Posse" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/javaposse?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to