Book description
Write More Elegant C++ Programs
“We are very pleased to see Rainer Grimm applying his teaching skills and industrial background to tackling the hard and necessary task of making the C++ Core Guidelines accessible to more people.”
—Bjarne Stroustrup and Herb Sutter, co-editors, C++ Core Guidelines
The official C++ Core Guidelines provide consistent best practices for writing outstanding modern C++ code and improving legacy code, but they’re organized as a reference for looking up one specific point at a time, not as a tutorial for working developers. In C++ Core Guidelines Explained, expert C++ instructor Rainer Grimm has distilled them to their essence, removing esoterica, sharing new insights and context, and presenting well-tested examples from his own training courses.
Grimm helps experienced C++ programmers use the Core Guidelines with any recent version of the language, from C++11 onward. Most of his code examples are written for C++17, with added coverage of newer versions and C++20 wherever appropriate, and references to the official C++ Core Guidelines online.
Whether you’re creating new software or improving legacy code, Grimm will help you get more value from the Core Guidelines’ most useful rules, as you write code that’s safer, clearer, more efficient, and easier to maintain.
Apply the guidelines and underlying programming philosophy
Correctly use interfaces, functions, classes, enum, resources, expressions, and statements
Optimize performance, implement concurrency and parallelism, and handle errors
Work effectively with constants, immutability, templates, generics, and metaprogramming
Improve your C++ style, manage source files, and use the Standard Library
Register your book for convenient access to downloads, updates, and/or corrections as they become available. See inside book for details.
Table of contents
- Cover Page
- About This eBook
- Halftitle Page
- Title Page
- Copyright Page
- Pearson’s Commitment to Diversity, Equity, and Inclusion
- Contents
- List of selected C++ Core Guidelines
- List of figures
- List of tables
- Foreword
- Preface
- Acknowledgments
- About the author
-
Part I: The Guidelines
- Chapter 1. Introduction
- Chapter 2. Philosophy
- Chapter 3. Interfaces
- Chapter 4. Functions
- Chapter 5. Classes and Class Hierarchies
- Chapter 6. Enumerations
- Chapter 7. Resource Management
- Chapter 8. Expressions and Statements
- Chapter 9. Performance
- Chapter 10. Concurrency
- Chapter 11. Error Handling
- Chapter 12. Constants and Immutability
- Chapter 13. Templates and Generic Programming
- Chapter 14. C-Style Programming
- Chapter 15. Source Files
- Chapter 16. The Standard Library
- Part II: Supporting Sections
- Part III: Appendixes
- Index
- Code Snippets
Product information
- Title: C++ Core Guidelines Explained: Best Practices for Modern C++
- Author(s):
- Release date: April 2022
- Publisher(s): Addison-Wesley Professional
- ISBN: 9780136875758
You might also like
book
Modern C++ for Absolute Beginners: A Friendly Introduction to C++ Programming Language and C++11 to C++20 Standards
Learn the C++ programming language in a structured, straightforward, and friendly manner. This book teaches the …
book
Effective Modern C++
Coming to grips with C++11 and C++14 is more than a matter of familiarizing yourself with …
video
Complete Modern C++ (C++11/14/17)
This course provides an extensive exploration of C++. The journey starts with mastering the syntax and …
book
C++ Cookbook
Despite its highly adaptable and flexible nature, C++ is also one of the more complex programming …