
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.








…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)” ↗…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++” ↗…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” ↗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++?” ↗…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++?” ↗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” ↗…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” ↗Modern C++ Design by Andrei Alexandrescu, for one.
on “Life After OOP: C++ is not just an object-oriented language” ↗…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” ↗…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” ↗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” ↗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)” ↗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” ↗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” ↗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” ↗