This post has already been published on code::gallery blog which now has been merged into this blog.
Bjarne Stroustrup answers some of the frequently asked questions regarding C++ style and techniques. However, this is just an FAQ and should not be considered as replacements for books.
It is a good revelation on some techniques, e.g., Should I use NULL or 0? or So, what’s wrong with macros?. It also answers some design questions, like, about final keyword or pointers and references. However you should read Design and Evolution of C++ to understand the philosophy behind the C++ design.
These are not mandatory rules, just Stroustrup’s take on certain issues that can solve some everyday problems/doubts of a C++ programmer. And what better authority than the creator himself. Check it out!
Copyright Abhijit Nadgouda.


August 30th, 2007 at 4:15 pm
[...] lets you do bad design. With flexible tools it is important to know and follow the best practices. C++ Techniques FAQ is one of the places to start with. Conversations between Bill Venners and Bjarne Stroustrup is [...]