28. Ten Ways to Avoid Adding Bugs to Your Program

  1. Stephen R. Davis

Published Online: 31 OCT 2011

DOI: 10.1002/9781118257524.ch28

C++ for Dummies®, 6th Edition

C++ for Dummies®, 6th Edition

How to Cite

Davis, S. R. (2009) Ten Ways to Avoid Adding Bugs to Your Program, in C++ for Dummies®, 6th Edition, Wiley Publishing, Inc., Hoboken, NJ, USA. doi: 10.1002/9781118257524.ch28

Publication History

  1. Published Online: 31 OCT 2011
  2. Published Print: 27 APR 2009

ISBN Information

Print ISBN: 9780470317266

Online ISBN: 9781118257524

SEARCH

Keywords:

  • program;
  • warnings;
  • error messages;
  • static assertions;
  • multiple inheritance

Summary

This Chapter contains sections titled:

  • Enable All Warnings and Error Messages

  • Adopt a Clear and Consistent Coding Style

  • Limit the Visibility

  • Comment Your Code While You Write It

  • Single-Step Every Path at Least Once

  • Avoid Overloading Operators

  • Manage the Heap Systematically

  • Use Exceptions to Handle Errors

  • Declare Destructors Virtual

  • Avoid Multiple Inheritance