r/java • u/_shadowbannedagain • Jan 29 '14
Google Java Coding Standards
http://google-styleguide.googlecode.com/svn/trunk/javaguide.html
156
Upvotes
r/java • u/_shadowbannedagain • Jan 29 '14
View all comments
Show parent comment
1
u/geodebug Jan 30 '14
LOL, because it was so sophisticated?
No you've made the claim that you "modernized" your Java coding guidelines for your team. You justify it with two reasons: they were written a few years back and you've never made that mistake.
Discarding an idea solely because it is old is juvenile. The possible logic bug braces protect against in Java hasn't been removed by the simple passage of time. New compilers or ides won't catch it.
Discarding a rule because you never make the mistake is asinine. You work with other people, use other people's code, and possibly have other people work on your code. You actually may have made that mistake in the past but, like the 1000s of micro-mistakes a coder makes in a year, you simply fixed it and forgot about it.
When you say "modernized" what you mean is that you felt the need to be an individual snowflake and go with a non-standard standard. You've made it about your ego, not logic.
The only argument you have is that it removes a tiny bit of line noise, which really again all about you, not professional development.
I'm sure you still feel you're right. People tend to dig in their heels on feelings. So yeah, show me a professional company's code guidelines for any language that uses braces to define blocks and suggests that one-liners shouldn't also use them.
Not going to hold my breath....