© Stephan Roth 2021
S. RothClean C++20https://doi.org/10.1007/978-1-4842-5949-8_4

4. Basics of Clean C++

Stephan Roth1  
(1)
Bad Schwartau, Schleswig-Holstein, Germany
 

As I have explained in Chapter 1, lots of C++ code out there is not clean. In many projects, software entropy has gotten the upper hand. Even if you are dealing with an ongoing development project, for example, with a piece of software under maintenance, large parts of the code base are often very old. The code looks as if it were written in the last century. This is not surprising, since most of that code was literally written in the last century! There are many projects with a long lifecycle, and they have their roots in the 1990s or even the 1980s. Furthermore, many programmers copy ...

Get Clean C++20: Sustainable Software Development Patterns and Best Practices now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.