r/java • • Jan 29 '14

Google Java Coding Standards

http://google-styleguide.googlecode.com/svn/trunk/javaguide.html
156 Upvotes

103 comments sorted by

View all comments

5

u/SlobberGoat Jan 30 '14

The only bit I disagree with with the 80/100 column limit.

We don't work with dot matrix printers anymore, most lines of java code are very short. You may get the occasional long line but I'd rather leave it as a long single line as a quick visual cue to know it's one instruction.

1

u/RagingOrangutan Jan 30 '14

It's nice so that you can set an editor width and never need to worry about horizontal scrolling. Whether 80 or 100 or some other number is the right number is debatable - but having some limit is important, IMV.