Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Brace Style/Position

Name: Anonymous 2011-10-15 6:05

Java convention states:

Open brace “{” appears at the end of the same line as the declaration statement.
The opening brace should be at the end of the line that begins the compound statement; the
closing brace should begin a line and be indented to the beginning of the compound
statement.

>Like this

public class Zelda {
   //statements
}

>NOT LIKE THIS

public class Zelda
{
   //statements
}

Fuck people, put the opening brace on the same line as declaration statement. Is it really so hard?

Source: http://www.oracle.com/technetwork/java/codeconventions-150003.pdf

Name: Anonymous 2011-10-15 17:37

I prefer the "not like this" version, because the extra whitespace emphasizes the structure. Classes are things, not statements.

It's 2011. We don't have to be on 80x24; screens are as close to paper as they've ever been. Thus, understanding and implementing the principles of typography helps everyone, especially when writing in such a potent shorthand, where one glyph of punctuation  could destroy the entire work.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List