Comments

  • Michael Stueben
Chapter

Abstract

Use comments with care. The 5-line Boolean function below is my revision of 13 lines of code with nine more comment lines. The longer version was an Internet instructor’s example, with the direction to comment nearly every line of code (terrible idea, even for beginners). Self-documentation is better.

Copyright information

© Michael Stueben 2018

Authors and Affiliations

  • Michael Stueben
    • 1
  1. 1.Falls ChurchUSA

Personalised recommendations