4 ms·
Google-styleguide
- tetha 17y agoHm, while the python style guide is interesting and contains good advices, I am missing a reference to PEP8.
- ciupicri 17y agoSpeaking of PEP8, I find it strange that the guide mentions "Indent your code blocks with 4 spaces.". AFAIK Google used 2 spaces for indentation.
- btn 17y agoThey use 2 spaces for C++ and ObjC, 4 spaces for Python.
- ciupicri 17y agoI was talking about the previous standard. Here's a proof: http://code.google.com/p/soc/wiki/PythonStyleGuide#Indentation http://code.google.com/p/soc/wiki/PythonStyleGuide#Indentati.... It says: Note that this differs from PEP8 and instead follows the original Google Python Style guide from which this style guide originated. Indent your code blocks with 2 spaces.
- litewulf 17y agoUnless I'm crazy, we still do. These guides differ from the internal guides in various strange ways. I'm pretty sure these are the coding standards for code released outside of Google. For various disgusting historical reasons Python written internally spits in the face of PEP8 naming conventions. (And other weird niggles.)
- raphar 17y agoAnd the java style guide?!?! Google has invested a lot in java projects, I don't think they don't care about the style there. Strange...
- aboodman 17y agoYou have no idea. There has been a thread raging for the past week on checked exceptions. An earlier war raged over 80 vs 100 columns.
- frognibble 17y agoPerhaps there's no reason for a Google specific Java style guide because the Java style guide from Sun is pretty good.
- litewulf 17y agoThere is a Google-specific guide. Its mostly of the form "go read the Sun style guide", with some specific clarifications of things the Sun style guide is quiet on.
- acg 17y agoThe C++ guide interestingly recommends not using a number of language features (exceptions for instance) and advises a more standard-like approach on Windows. I wonder what seasoned windows programmers make of it http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml#Windows_Code http://google-styleguide.googlecode.com/svn/trunk/cppguide.x...
- coliveira 17y agoI was reading that the worst problem of C++ is to decide what 10% of the language to use in your project. Google is trying to do this to avoid such conflicts.
- ciupicri 17y agoToo bad there's no .vimrc :-)
- leif 17y agothey have one; I might have it around somewhere but it's probably missing a lot