Cover of Modern C++ Design

Modern C++ Design

by Andrei Alexandrescu · first published 2001

83mentions
29recommended by
69HN commenters
2007–2026first – last mentioned

41% recommend50% neutral9% critical

Why HN recommends it

An advanced look at template metaprogramming and generic design, showing how templates build expressive abstractions. Suits experienced C++ programmers and works as a primer for modern template code.

Common criticism: Aimed at advanced programmers, not a good first C++ book

Summarised by Claude from recommending comments

Affiliate links. As an Amazon Associate I earn from qualifying purchases.

Mentions per year

130 2007: 2 mentions2008: 1 mention2009: 5 mentions2010: 4 mentions2011: 8 mentions2012: 2 mentions2013: 7 mentions2014: 13 mentions2015: 4 mentions2016: 4 mentions2017: 5 mentions2018: 0 mentions2019: 3 mentions2020: 5 mentions2021: 2 mentions2022: 4 mentions2023: 5 mentions2024: 1 mention2025: 1 mention2026: 4 mentions200720172026

What Hacker News says

  • rcurry · Jul 23, 2021 · Recommends

    …can spend years using the language to build real software and then walk into a job interview and get demolished by all sorts of crazy stuff you didn’t even know existed. I remember purchasing the book “Modern C++ Design” by Andrei Alexandrescu and after reading it I realized it was time to find something else to do. It was an awesome book and I loved it, but all I did was work on trading systems and I knew I’d never…

    on “Modern C++ for C Programmers (2018)” ↗
  • recentdarkness · Nov 27, 2013 · Recommends

    …Exceptional C++ by Herb Sutter - More 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…

    on “The Rook's Guide to C++” ↗
  • cgh · Jan 2, 2013 · Recommends

    …which aren't "here's how to program" type books. I'm not going to repeat books that were mentioned in the OP, except to say...The Algorithm Design Manual. 1. Python Essential Reference - Beazley 2. Modern C++ Design - Alexandrescu (mind-blowing; he now works on the D language) 3. Internet Core Protocols: The Definitive Guide - Hall (not a work of any particular genius, but this is stuff everyone should know, in…

    on “Code Interview Reading List” ↗
  • queensnake · Apr 10, 2011 · Recommends

    Read the Exceptional C++ series (shorter, 'highlights' version is C++ Coding Standards), Modern C++ Design, and Andrei Alexandrescu's unpublished columns.

    on “Ask HN: What did you do to become an expert in C++?” ↗
  • neilxdsouza · Feb 22, 2014 · Recommends

    …yourself). I myself am not very good in C++, but the more you program, the better you become. You may need to read Exceptional C++ by Herb Sutter and some other style guides and other books including Modern C++ Design by Andrei Alexandrescu and C++ Templates : The Complete Guide by Josuttis and Vandevoorde. The Stanley Lippman book mentioned in another comment is also very good. I work on an Open source project in…

    on “Ask HN: How much would you charge to mentor me in C++?” ↗
  • tfigment · May 30, 2022 · Recommends

    I was kind of hoping this was updated Modern C++ Design by Andrei Alexandrescu. That was my favorite C++ book and at least I thought it didn't use the STL in Loki at all. It was the better templating design though heavily at the mercy of compilers at the…

    on “Embracing Modern C++ Safely, Book Review” ↗
  • rramadass · Sep 24, 2022 · Recommends

    …James Coplien. 2) Scientific and Engineering C++: An Introduction With Advanced Techniques and Examples by John Barton & Lee Nackman. 3) Advanced C++ Programming Styles and Idioms by James Coplien. 4) Modern C++ Design: Generic Programming and Design Patterns Applied by Andrei Alexandrescu. Modern C++: 1) Functional Programming in C++: How to improve your C++ programs using functional techniques by Ivan Cukic.

    on “C++ by Example” ↗
  • darwinGod · Nov 28, 2010 · Recommends

    Modern C++ Design by Andrei Alexandrescu, for one.

    on “Life After OOP: C++ is not just an object-oriented language” ↗
  • katastic · Dec 20, 2017 · Recommends

    …how that works?" The guys behind D are brilliant, and professional. Watch any of their talks. Andrei Alexandrescu works for Facebook and still writes plenty of C++. He also wrote THE quintessential "Modern C++ Design" book on template meta-programming. And Walter Bright has been writing compilers for decades. This is not a toy language. Here's plenty of benchmarks showing D as fast as (and sometimes beating) C/C++…

    on “D’s Newfangled Name Mangling” ↗
  • phaedrus · Feb 12, 2010 · Recommends

    …they mostly add or enhance, so an old book can still be relevant if it was a well written book, you just might have to look in other sources for other topics. I thought I knew C++ well, but the book Modern C++ Design by Andrei Alexandrescu completely blew my mind. It's a bit advanced, and more of a cookbook than in introduction, but it does serve to introduce some of the more recent innovations in C++ programming.…

    on “Learning C++ in 2010” ↗
  • CountHackulus · Jun 12, 2011 · Recommends

    If you really want to dive straight into the deep end, I'd recommend Modern C++ Design by Andrei Alexandrescu. But if you want just a gentle introduction to C++ I'd suggest The C++ Programming Language by Bjarne Stroustrup. Both of these authors are staples in the C++ world and so their…

    on “The New C++: Lay down your guns, knives, and clubs” ↗
  • law · Nov 16, 2012 · Recommends

    Modern C++ Design (Andrei Alexandrescu)[1] is wonderful, but C++11 has "simplified" much of what he covers. If you want to be able to read the C++11 standard[2] with little effort, Alexandrescu's book is nevertheless a…

    on “21st Century C (new book)” ↗
  • bratsche · Feb 23, 2014 · Recommends

    This is pretty far from an introductory C++ book, but I'd like to mention "Modern C++ Design" by Andrei Alexandrescu. Back when I was writing C++ code, this was the book that really opened my eyes to what you could do with the language.

    on “The C++ and programming books I recommend” ↗
  • tfigment · Jun 20, 2014 · Recommends

    If you have not read, Modern C++ Design by Andrei Alexandrescu then you are doing your self a disfavor if you are interested in performance. While its a bit old I guess, the Loki library is/was a wonderful C++ library with very interesting…

    on “C++: Vector of Objects vs. Vector of Pointers” ↗
  • helmut_hed · Aug 19, 2014 · Recommends

    There's no better place to start than Alexandrescu's eponymous Modern C++ Design http://www.amazon.com/Modern-Design-Generic-Programming-Patt.... Scott Meyers will soon come out with "Effective C++11" which from the table of contents looks like it will do a great job of covering…

    on “We have C++14” ↗

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