Cover of C++ coding standards

C++ coding standards

by Herb Sutter · first published 2004

10mentions
10recommended by
10HN commenters
2010–2016first – last mentioned

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.

Mentions per year

40 2007: 0 mentions2008: 0 mentions2009: 0 mentions2010: 1 mention2011: 4 mentions2012: 0 mentions2013: 1 mention2014: 3 mentions2015: 0 mentions2016: 1 mention2017: 0 mentions2018: 0 mentions2019: 0 mentions2020: 0 mentions2021: 0 mentions2022: 0 mentions2023: 0 mentions2024: 0 mentions2025: 0 mentions2026: 0 mentions200720172026

What Hacker News says

  • dkarl · Feb 27, 2011 · Recommends

    …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++” ↗
  • cpeterso · Oct 30, 2011 · Recommends

    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” ↗
  • helmut_hed · Aug 19, 2014 · Recommends

    …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” ↗
  • recentdarkness · Nov 27, 2013 · Recommends

    …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++” ↗
  • blub · May 1, 2011 · Recommends

    …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” ↗
  • IvyMike · Feb 23, 2014 · Recommends

    …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” ↗
  • fredophile · Jan 1, 2016 · Recommends

    …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” ↗
  • alexk7 · Aug 2, 2010 · Recommends

    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]” ↗
  • pwaring · Oct 29, 2011 · Recommends

    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” ↗
  • BatFastard · Feb 23, 2014 · Recommends

    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” ↗

Keyboard shortcuts

/
Focus search
j / k
Next / previous book
Enter
Open focused book
Esc
Close / go back
g h
Go to Home
g t
Go to Top all-time
g m
Go to Most recommended
g r
Go to Rising
g f
Go to For You
?
Show this help