This book introduces basic errors present in almost all C++ code, such as excessive commenting and unnecessary cleverness. It also includes chapters handling increasingly complex mistakes in syntax, preprocessing, conversions, initialization, memory and resource management, polymorphism, class design, and hierarchy design. Each error is explained and its context and repercussions clearly illustrated. The resolution of each problem is subsequently detailed and demonstrated.
Author Stephen Dewhurst supplies readers with idioms and design patterns that can be applied to provide customized solutions to common problems. Readers also gain deeper knowledge of the commonly misunderstood features of C++ used in advanced programming and design.
- How to escape both common and complex traps associated with C++
- How to produce more reusable, more maintainable code
- Advanced C++ programming techniques
- Nuances of the C++ language