This is the code repository for Debunking C++ Myths, published by Packt.
Inspect and debunk common misconceptions about the C++ language
For decades, C++ has been clouded by myths and misunderstandings—from its early design decisions to misconceptions that still linger today. Claims like "C++ is too hard to learn" or "C++ is obsolete" are often rooted in some truth, but they are outdated and fail to capture the language’s ongoing evolution and modern capabilities.
- Comprehend the history of C++ and the design decisions that shape modern challenges
- Master program flow and its underlying principles to resolve issues effectively
- Tackle incompatibility across compilers and platforms with ease
- Identify issues and avoid writing code that may lead to undefined behavior
- Explore advanced C++ features not typically covered in academia
- Address concerns about compiler code generation and optimizations
- Understand why undefined behavior remains intentionally undefined
If you feel this book is for you, get your copy today!
All of the code is organized into folders. For example, Chapter02.
The code will look like the following:
#include <iostream>
typedef struct S {
int a;
} S, const *CSP;
int main() {
S s1;
s1.a = 1;
CSP ps1 = &s1;
std::cout << ps1->a;
}
Following is what you need for this book: This book is for intermediate-to-advanced C++ developers looking to deepen their understanding of the language’s complexities. It is perfect for coders eager to avoid common mistakes, hackers, scholars with a sense of humor, or anyone with an interest in C++. Programmers who want to expand their knowledge, refine existing skills, explore new paradigms, or dive into the nuances of C++, will find valuable insights. Technical leads and software engineering managers adopting new technologies or navigating the C++ ecosystem will also benefit from this book.
With the following software and hardware list you can run all code files present in the book (Chapter 1-12).
Chapter | Software required | OS required |
---|---|---|
1-12 | Various C++ compilers, which are relevant or not in 2025 | Windows, macOS, Linux, or no operating system at all |
Alexandru Bolboacă is a CTO, passionate polyglot programmer, senior trainer, and advisor at Mozaic Works. With over 20 years in software development, he has worked for various industries, and in various European countries, as well as the UK and the USA. He has been involved in large projects in industries such as banking and financial services, energy, telecommunications, pharma, and eHealth. From practical experience, he advises and teaches architecture and usable software design, evolutionary design, crafting code, clean code, secure coding, and refactoring legacy code. Alex enjoys helping teams and organizations to understand and build strategies for successful and robust products, built-in quality, and motivation.
Deák Ferenc-Lajos is a seasoned software developer with a strong foundation in mathematics and theoretical computer science, who is currently based in Trondheim, Norway. His career spans roles in diverse domains, including autonomous vehicles, real-time traffic systems, multimedia, and telecommunications. He is an avid open source fan, having several projects live and running, and has written more than a dozen articles for multiple technical publications concerning one of his passions: programming.