Book

Exceptional C++ Style

📖 Overview

Exceptional C++ Style presents advanced C++ programming techniques through a series of technical puzzles and solutions. The book builds on Sutter's previous works in the Exceptional C++ series with 40 new guidelines for writing robust C++ code. The material covers topics including exception safety, generic programming, optimization, and resource management. Each section contains practical examples and detailed explanations of C++ best practices, with a focus on real-world applications and common pitfalls. The format follows a problem-solution structure where programming challenges are presented first, followed by in-depth analysis and implementation guidance. Core language features and standard library components are examined through the lens of modern C++ design principles. This work emphasizes the connection between technical correctness and maintainable code structure, suggesting that programming style directly impacts software quality. The text serves as both a technical reference and a broader meditation on professional software development practices.

👀 Reviews

Readers value this book for its in-depth coverage of C++ design patterns and best practices. Many developers praise the challenging difficulty level and practical problem-solving approach through puzzles and examples. Liked: - Clear explanations of complex topics like exception safety - Real-world code examples that demonstrate common pitfalls - "Items" format makes it easy to reference specific concepts - Strong focus on modern C++ practices and standards Disliked: - Advanced material requires solid C++ experience to follow - Some examples feel dated (pre-C++11) - Dense technical writing style can be hard to digest - High price point for relatively thin book Ratings: Goodreads: 4.24/5 (98 ratings) Amazon: 4.5/5 (28 reviews) Notable review: "The puzzles really make you think and the solutions often surprise. But beginners will struggle - this is definitely not a first C++ book." - Amazon reviewer

📚 Similar books

Effective Modern C++ by Scott Meyers This book dissects C++11/14 features and idioms with the same depth of analysis and focus on best practices that characterizes Sutter's work.

C++ Template Metaprogramming by David Abrahams, Aleksey Gurtovoy The text explores advanced C++ template techniques and metaprogramming concepts that build upon the expert-level discussions found in Exceptional C++ Style.

Large-Scale C++ Software Design by John Lakos This book extends beyond coding practices to examine architectural principles and physical design considerations in C++ systems development.

C++ Coding Standards by Andrei Alexandrescu The authors present 101 rules for writing C++ code that complement the guidelines and rationale provided in Exceptional C++ Style.

Modern C++ Design by Andrei Alexandrescu This work delves into advanced template techniques and policy-based design, providing the next level of mastery for readers familiar with Sutter's style recommendations.

🤔 Interesting facts

📚 Herb Sutter wrote this book as part of a series that includes "Exceptional C++" and "More Exceptional C++," with each book building on the knowledge from previous volumes 🎓 The book uses a problem-solving format called "Items," where each chapter presents specific C++ programming challenges and their solutions, similar to a puzzle-solving approach 💡 Many guidelines in the book later influenced the official C++ Core Guidelines, which Herb Sutter co-authored with Bjarne Stroustrup (C++'s creator) 🏢 Sutter served as the chair of the ISO C++ standards committee for over a decade and coined the term "Almost Always Auto" - a widely adopted C++ coding practice discussed in the book 🔄 The book introduces the "Pimpl Idiom" (Pointer to Implementation), which became a fundamental C++ design pattern for reducing compilation dependencies and binary size