1 C++: With Great Power Comes Great Responsibility
This chapter covers
- Insight into the origin of C++ programming mistakes
- Four analytical categories of proper code
- An approach to detecting and resolving programming mistakes
- Encouragement to take on the daunting task of correcting mistakes
C++ is a multi-paradigm language that has existed for much of the computing era. It started as a better C, that is, C with classes, and has become an international standards-based language in active development. At the time of this writing, the C++20 standard was published, the C++23 standard was out for final, and the C++26 standard was being formed. C++ is used in projects ranging from very small to very large by inexperienced to highly experienced developers and applies to most areas of software development.
An estimated 10 billion lines of C++ code are currently running in production environments. Numerous teams and millions of developers from different backgrounds have written this code over a span of years. Each developer has a view of proper programming models, what good C++ code is, and which development methodologies should be used.