100 C++ Mistakes and How to Avoid Them you own this product

Rich Yonts
  • January 2025
  • ISBN 9781633436893
  • 360 pages
  • printed in black & white

pro $24.99 per month

  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose one free eBook per month to keep
  • exclusive 50% discount on all purchases

lite $19.99 per month

  • access to all Manning books, including MEAPs!

team

5, 10 or 20 seats+ for your team - learn more


ePub + liveBook available Jan 22, 2025
Look inside
Learn how to handle errors, inefficiencies, and outdated paradigms by exploring the most common mistakes you’ll find in production C++ code.

100 C++ Mistakes and How To Avoid Them reveals the problems you’ll inevitably encounter as you write new C++ code and diagnose legacy applications, along with practical techniques you need to resolve them.

Inside 100 C++ Mistakes and How To Avoid Them you’ll learn how to:

  • Design solid classes
  • Minimize resource allocation/deallocation issues
  • Use new C++ features
  • Identify the differences between compile and runtime issues
  • Recognize C-style idioms that miss C++ functionality
  • Use exceptions well
100 C++ Mistakes and How To Avoid Them gives you practical insights and techniques to improve your C++ coding kung fu. Author Rich Yonts has been using C++ since its invention in the 1980s. This book distills that experience into practical, reusable advice on how C++ programmers at any skill level can improve their code. Unlike many C++ books that concentrate on language theory and toy exercises, this book is loaded with real examples from production codebases.

about the technology

Over ten billion lines of C++ code are running in production applications, and 98-developers find and fix mistakes in them every day. Even mission-critical applications have bugs, performance inefficiencies, and readability problems. This book will help you identify them in the code you’re maintaining and avoid them in the code you’re writing.

about the book

100 C++ Mistakes and How To Avoid Them presents practical techniques to improve C++ code, from legacy applications to modern codebases that use C++ 11 and beyond. Author Rich Yonts provides a concrete example to illustrate each issue, along with a step-by-step walkthrough for improving readability, effectiveness, and performance. Along the way, you’ll even learn how and where to replace outdated patterns and idioms with modern C++.

what's inside

  • Design solid classes
  • Resource allocation/deallocation issues
  • Compile and runtime problems
  • Replace C-style idioms with proper C++

about the reader

Covers C++ 98 through 23, with an emphasis on diagnosing and improving legacy code.

about the author

Rich Yonts is a Senior Software Engineer at Teradata and a long-time software engineer using C++, Java, and Python. He has held a number of technical and leadership roles during his many years at IBM and Sony.

A comprehensive collection of common pitfalls providing clear examples and practical advice on how to avoid them. An invaluable resource!

Yacob Cohen-Arazi, NVIDIA

Examples were excellent, explained with in-depth detail that you can apply to your C++ projects!

Stanley Anozie, Santander Consumer Bank AG

Methodical and practical! Addresses challenges faced by developers working with legacy codebases with clear, actionable solutions that bridge the gap between classical and modern C++.

Matt Godbolt, Aquatic Capital Management

choose your plan

team

monthly
annual
$49.99
$399.99
only $33.33 per month
  • five seats for your team
  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose another free product every time you renew
  • choose twelve free products per year
  • exclusive 50% discount on all purchases
  • 100 C++ Mistakes and How to Avoid Them ebook for free

choose your plan

team

monthly
annual
$49.99
$399.99
only $33.33 per month
  • five seats for your team
  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose another free product every time you renew
  • choose twelve free products per year
  • exclusive 50% discount on all purchases
  • 100 C++ Mistakes and How to Avoid Them ebook for free