
Better than a summary
C++ Coding Standards summary
Andrei Alexandrescu & Herb Sutter
No credit card required · Cancel anytime
C++ Coding Standards by Herb Sutter and Andrei Alexandrescu provides a comprehensive guide to writing high-quality, maintainable C++ code. It covers best practices and coding conventions to help you write more efficient and reliable software.
Topics
C++ Coding Standards
Summary of key ideas
Understanding C++ Coding Standards
In C++ Coding Standards by Herb Sutter and Andrei Alexandrescu, the authors present a comprehensive set of guidelines for writing high-quality C++ code. They argue that consistent coding standards are essential for improving software quality, reducing time-to-market, and simplifying maintenance. The book is structured around 101 specific rules and best practices that cover various aspects of C++ programming.
The authors begin with the importance of consistent naming conventions, advocating for clear, descriptive names for variables, functions, and classes. They also emphasize the significance of using the standard library, avoiding macros, and preferring const and enum over #define. They further discuss the proper use of pointers and references, and the importance of understanding and adhering to the const correctness principle.
Design and Coding Style in C++
Moving on to design and coding style, C++ Coding Standards delves into the effective use of classes and inheritance. The authors recommend using composition over inheritance, defining copy semantics, and avoiding resource management in constructors and destructors. They also emphasize the significance of exception safety and propose a set of rules for exception handling in C++.
Furthermore, the book covers the effective use of templates, generic programming, and the Standard Template Library (STL). The authors argue for the use of templates to write generic code, but caution against overusing them. They also discuss the proper usage of STL containers and algorithms, advocating for their use over manual memory management and custom data structures and algorithms.
Performance and Scalability in C++
Performance and scalability are two critical aspects of C++ programming, and the authors provide a set of guidelines to address these concerns. They discuss the use of virtual functions and multiple inheritance, recommending their cautious use due to performance implications. They also provide guidelines for writing efficient code using the STL, such as preferring algorithms over hand-written loops and using the right data structures for specific tasks.
Additionally, the authors discuss the effective use of inline functions, proper handling of memory allocation and deallocation, and the use of smart pointers. They also provide guidelines for writing exception-safe and thread-safe code, considering the growing importance of multi-threaded programming in modern software development.
Conclusion and Summary
In conclusion, C++ Coding Standards by Herb Sutter and Andrei Alexandrescu presents a comprehensive set of guidelines for writing high-quality, maintainable, and efficient C++ code. The authors emphasize the importance of consistency in coding standards and provide a detailed set of rules covering various aspects of C++ programming, from naming conventions to performance and scalability considerations.
By following these guidelines, C++ developers can improve the quality and maintainability of their code, reduce time-to-market, and ensure better performance and scalability of their software. The book serves as a valuable resource for both beginner and experienced C++ developers, offering a set of best practices and rules that can help them write better code and become more effective programmers.
More knowledge in less time
Read or listen
Get the key ideas from nonfiction bestsellers in minutes, not hours.
Find your next read
Get book lists curated by experts and personalized recommendations.
Shortcasts
We've teamed up with podcast creators to bring you key insights from podcasts.
What is C++ Coding Standards about?
C++ Coding Standards is a comprehensive guide to writing high-quality, maintainable code in C++. Written by Herb Sutter and Andrei Alexandrescu, this book provides practical guidelines and best practices for software development in C++. It covers a wide range of topics including naming conventions, code organization, resource management, and more. Whether you are a beginner or an experienced developer, this book will help you improve your coding skills and produce better C++ code.
C++ Coding Standards Review
- Offers clear guidelines and best practices for writing efficient and maintainable C++ code.
- Focuses on improving code clarity and efficiency through practical examples and insights from industry experts.
- Engages readers with real-world scenarios that make learning about coding standards surprisingly interesting and applicable.
Who should read C++ Coding Standards?
Software developers and engineers who want to improve their C++ coding skills
Professionals seeking to adhere to industry best practices and coding standards
Individuals who want to write more maintainable and efficient C++ code
Categories with C++ Coding Standards
Book summaries like C++ Coding Standards
People ❤️ Blinkist
Become a member of our community of 43 million people

96k ratings

73k ratings
Laura H.
When I saw Blinkist had produced an infographic style Blink for the Rich Dad, Poor Dad book, it was a good reminder of the concepts I loved.
Jonathan A.
Clearly communicates the value proposition of the most popular book summaries and offers a relatable, tangible template that I can use immediately.
Renee D.
I'm absolutely thrilled that Blinkist now offers infographics! I can't get enough of them—they're such a fun and effective way to grasp and remember key points.
People also liked these summaries
Trusted by the world's leading brands

Powerful ideas from top nonfiction
Try Blinkist to get the key ideas from 7,500+ bestselling nonfiction titles and podcasts. Listen or read in just 15 minutes.
Get started
Blink 3 of 8 - The 5 AM Club
by Robin Sharma





























