Friday, September 17, 2010

C++ Reference: Google C++ Style Guide

Located at:

http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml

Very interesting reference on C++ style (conventions) used by the Google developers. Each topic includes dos and don’ts, pros and cons, rationale, and other comments.

It is detailed enough to include the guideline:

Each line of text in your code should be at most 80 characters long.

In my development environment the line limit is usually set to 72 characters! I picked that up about 15 years ago from some hard core developers and got used to it. Sometimes I go over that but for some reason I have never exceeded 78 characters.

No comments:

Post a Comment