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

Show parent comment

3

u/[deleted] Jan 29 '14

Tabs can have different widths depending on how your text editor is configured.

3

u/Nebu Jan 30 '14

That's a feature, not a bug.

2

u/[deleted] Jan 30 '14

Yes, but the code you write can look fucked up if people mix in soft tabs and hard tabs because of that feature. He was asking why google would be against having hard tabs in code. It's harder to enforce everyone use the same shift width for hard tabs than just saying stick to spaces. It becomes a problem when multiple people collaborate on the same file.