Step-Wise Refinement

  • Michael Stueben


One way to self-document your code is to use top-down design, a form of structured programming also called step-wise refinement. In this style, the main function contains function calls with descriptive English names—e.g., enterData(), computeData(), and printData(). The function calls form an outline of what the code does. They tell a story.

Copyright information

© Michael Stueben 2018

Authors and Affiliations

  • Michael Stueben
    • 1
  1. 1.Falls ChurchUSA

Personalised recommendations