Hacker ApprovedDepartments

Modern C++ Design

Modern C++ Design by Andrei Alexandrescu

by Andrei Alexandrescu

Shares rank 13 of 115 programming books by recommenders

Readers credit it with teaching them to think about C++ design, especially policy classes; critics say its template-heavy techniques are hard to use and slow compiles.

Readers credit it with teaching them to think about C++ design, especially policy classes; critics say its template-heavy techniques are hard to use and slow compiles.

11 people gave an opinion

recommend it
9
criticize it
2
approval share
82%
Each figure is one person. RecommendsCriticizes

Recommended in 3 of 13 months

  1. November 2025: not recommended
  2. December 2025: not recommended
  3. January 2026: not recommended
  4. February 2026: recommended
  5. March 2026: recommended
  6. April 2026: not recommended
  7. May 2026: not recommended
  8. June 2026: recommended
  9. July 2026: not recommended
  10. August 2026: not recommended
  11. September 2026: not recommended
  12. October 2026: not recommended
  13. November 2026: not recommended (month in progress)

Why it doesn’t carry the badge

  • 9 people recommend itNeeds 10 or more, not met.
  • 4.5 recommenders for every criticNeeds 2 to 1 or better, met.
  • Recommended in 3 of 13 monthsNeeds 4 or more, not met.

The same three rules apply to every product, and the badge can’t be bought. How the badge works

What people say about it

The reasons people give, with the number of comments that give each one. Open a reason to read what they said.

Why people recommend it

Each mark is one comment

  • Changed how they think about design

    “His book on modern C++ design was a mind opener at the time I read it.”

    Comment from 5 Jun 2026 in “C++: The Documentary Released Today”

    “he taught me how to think”

    Comment from 5 Jun 2026 in “C++: The Documentary Released Today”
  • Praised as one of the best

    “probably the programming book I've gotten the most out of in my career”

    Comment from 5 Jun 2026 in “C++: The Documentary Released Today”

    “the book is definitively one of the best”

    Comment from 16 Mar 2026 in “Ask HN: How to Learn C++ in 2026?”

What people warn about

Each mark is one comment

  • Template-heavy code slows compiles

    “It also caused developers to produce template-heavy code that took minutes to compile.”

    Comment from 5 Jun 2026 in “C++: The Documentary Released Today”

    “Cute template tricks to make you feel smart and increase compile time”

    Comment from 5 Jun 2026 in “C++: The Documentary Released Today”

Other programming books people recommend

The four most recommended other programming books, with the same counts for each, so you can compare like for like. The tick on each bar marks the 2 to 1 line the badge needs.

Modern C++ Design by Andrei Alexandrescu compared with 4 alternatives
ProductRecommendCriticizeApprovalMonthsOwnedBadge
Crafting Interpretersby Robert Nystrom60494%10—Approved
Clean Codeby Robert C. Martin318726%9——
The Pragmatic Programmerby Hunt and Thomas28197%7—Approved
How to Design Programsby Felleisen, Findler, Flatt and Krishnamurthi18290%7—Approved
Modern C++ Designby Andrei AlexandrescuThis page9282%3——
See all 115 programming books, ranked

What people said

All 11 comments that mention it, newest first. Each links to the original comment.

“Cute template tricks to make you feel smart and increase compile time”

CriticizesComment from 5 Jun 2026 in “C++: The Documentary Released Today”

“It also caused developers to produce template-heavy code that took minutes to compile.”

MixedComment from 5 Jun 2026 in “C++: The Documentary Released Today”

“Great books, truly, and they helped cement the notion that I wanted to move on to a different language.”

MixedComment from 5 Jun 2026 in “C++: The Documentary Released Today”

“not much of the stuff is usable IRL”

MixedComment from 5 Jun 2026 in “C++: The Documentary Released Today”

“probably the programming book I've gotten the most out of in my career”

RecommendsComment from 5 Jun 2026 in “C++: The Documentary Released Today”

“I liked a few of the chapters especially how policy classes fix some issues with OO design.”

RecommendsComment from 5 Jun 2026 in “C++: The Documentary Released Today”

“he taught me how to think”

RecommendsComment from 5 Jun 2026 in “C++: The Documentary Released Today”

“His book on modern C++ design was a mind opener at the time I read it.”

RecommendsComment from 5 Jun 2026 in “C++: The Documentary Released Today”

“the book is definitively one of the best”

RecommendsComment from 16 Mar 2026 in “Ask HN: How to Learn C++ in 2026?”

“It’s like a piece of modern art but completely not self aware.”

CriticizesComment from 28 Feb 2026 in “OpenAI's $110B funding round (investments from Amazon, Nvidia, SoftBank)”

“are a joy to read, especially, Modern C++ design”

RecommendsComment from 12 Feb 2026 in “D Programming Language”

Counts come from 1,795,640 Hacker News comments, November 2025 to November 2026. How we count. Report a mistake.