r/programming • • Jan 30 '14

Google Java Coding Standards

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

19 comments sorted by

View all comments

7

u/josefx Jan 30 '14

With the insanity that is Googles c++ coding style I am really surprised. Only a single, reasonable warning against broken functionality provided by the standard library. A good IDE should be able to automate almost all of it.

9

u/strattonbrazil Jan 30 '14

With the insanity that is Googles c++ coding style

Can you elaborate? I haven't heard many complaints about it. I gave it a cursory glance and it looks fairly reasonable including the pro/cons of each decision.

5

u/Plorkyeran Jan 31 '14

The pros and cons listed are often woefully incomplete due to that the C++ guidelines seem to have been written by someone (or a group) that does not actually know C++. Quite often they do not mention the idiomatic use of the thing being forbidden at all, suggesting that the authors are either being intellectually dishonest or simply have no idea what modern idiomatic C++ looks like.

I wrote up a brief list of the places where the style guide contradicts idiomatic modern C++ style a little while back.