
C++ coding standards
by Herb Sutter · first published 2004
100% recommend
Why HN recommends it
Around fifty concise, numbered rules on modern yet pragmatic C++ style, each with discussion. Each rule can be applied one point a week, and the book suits working C++ engineers rather than beginners.
Summarised by Claude from recommending comments
"Consistent, high-quality coding standards improve software quality, reduce time-to-market, promote teamwork, eliminate time wasted on inconsequential matters, and simplify maintenance. Now, two of the world's most respected C++ experts distill the rich collective experience of the global C++ community into a set of coding standards that every developer and development team can understand and use as a basis for their own coding standards.
Affiliate links. As an Amazon Associate I earn from qualifying purchases.








…legacy macro tricks that we easily replaced with better, non-macro techniques; and Qt's preprocessor, which we never actually used in production code. Style points for C++ have been rehashed endlessly. "C++ Coding Standards" is pretty good IIRC: http://www.amazon.com/Coding-Standards-Rules-Guidelines-Prac... For gaming and embedded software, you will need further rules for performance. I'm not sure why this is a ding…
on “Surviving C++” ↗Herb Sutter and Andrei Alexandrescu's C++ Coding Standards: 101 Rules, Guidelines, and Best Practices is a great, little book. It does not teach C++ (or C++11) and seems a little light at first, but it provides good advice for "modern" (21st century) C++ and…
on “Elements of Modern C++ Style” ↗…standards, I suggest a book by the same author plus the current chair of the standard committee: http://www.amazon.com/Coding-Standards-Rules-Guidelines-Prac.... Another commenter has suggested the Google C++ Coding Standards, but despite their popularity they do not conform very well to "Modern C++" as I understand it.
on “We have C++14” ↗…Exceptional C++ by Herb Sutter - Exceptional C++ Style by Herb Sutter --- - C++ Templates - The Complete Guide by David Vandevoorde and Nicolai M. Josuttis - Modern C++ Design - By Andrei Alexandrescu - C++ Coding Standards by Herb Sutter and Andrei Alexandrescu Last but not least, reading the C++ Standard is the last bit on the topic of C++ This is the list of books which I recommend anyone who really wants to become…
on “The Rook's Guide to C++” ↗…guide that makes sense for the very large C++ projects inside Google. Projects should create their own guides based on their requirements. The common ground is already there, you can read about it in C++ Coding Standards by Sutter and Alexandrescu. [2] is someone wondering whether they should replace C++ with a mostly-C++-compatible language for Firefox. First of all, they are complaining about memory safety, not management…
on “Objective-C's niche: why it survives in a world of alternatives” ↗…Here are a few good ones that I haven't seen mentioned elsewhere in the thread. - Sutter's Exceptional C++ books - Dewhurst's C++ Common Knowledge and C++ Gotchas are useful. - Sutter/Alexandrescu's "C++ Coding Standards" is good, too.
on “The C++ and programming books I recommend” ↗…fifty main points with discussion on each. I like to use them by reading one point and then trying to apply it specifically in my work. Doing this at one point a week I can go through about a book a year. C++ Coding Standards by Sutter and Alexandrescu or Effective C++ would be my top two recommendations for someone with your background. I'd stay away from Alexandrescu's other work for now since it tends to be more advanced…
on “} // good to go” ↗The book "C++ Coding Standards" by Herb Sutter and Andrei Alexandrescu is an excellent way to get up to date with modern yet pragmatic C++ style. I also recommend the "Effective C++" series by Scott Meyers and the "Exceptional C++"…
on “The Dark Side of C++ [pdf]” ↗Herb Sutter, whose blog post is the subject of this thread, has written a few books. I enjoyed C++ Coding Standards in particular.
on “Elements of Modern C++ Style” ↗I second many of the books, but in particular "Sutter/Alexandrescu's C++ Coding Standards" the "coding standards" is misleading, its more like a "Code Complete" for hardcore C++.
on “The C++ and programming books I recommend” ↗