Monday, February 26, 2007

C++ Coding Conventions

Alright! I love coding conventions. Impossible to follow but a must have! Check out these from Ellemtel that are widely referenced on the internet and can be used as an excellent base for your own set of conventions!
  1. Programming in C++, Rules and Recommendations (pdf)
  2. Programming in C++, Rules and Recommendations (text)
I normally follow my own set of conventions for free-standing applications or libraries. But when coding in some existing codebase or using a framework like MFC I of course adapt to the current conventions. Because as you all already know the absolutly worst thing of all is code with different coding styles in it.

No comments: