100 C++ Mistakes and How to Avoid Them cover
welcome to this free extract from
an online version of the Manning book.
to read more



Thank you for purchasing the MEAP of 100 C++ Mistakes and How to Avoid Them.

I have two hopes for this MEAP and the book. First, I want to establish a theoretical basis for designing correct classes (data types). This basis is essential for learning how to write good software in C++. Second, I want to address some of the issues that programmers have faced and why some of these mistakes remain in current projects.

The book focuses on newer developers who inherit existing C++ projects. Understanding why specific mistakes exist helps you know how to detect and avoid writing similar issues. The mistakes start with class design and end with a few modern C++ techniques. Learning these new features should encourage you to improve your inherited code and leave it in a much better state for the next developer.

By the end of this book, you should have a solid understanding of the following:

  • Several mistakes that have found their way into existing C++ code and their solutions
  • Detecting these and similar problems to prevent writing new mistakes
  • Why these issues are mistakes and how to think more correctly about using C++

The book is divided into twelve chapters that progress from class design, through using classes well, to coding in general, and ending with modern C++ techniques.