Design recipe for Scheme programs, version 2

(or functions in most other languages, for that matter!)

    Analysis and design (i.e. "decide what you want to do")

  1. Understand the assignment informally
  2. Write a function contract, specifying what kind of information goes in and what kind comes out
  3. Analyze the data types going in and out
  4. Write examples of how your function will be used, with correct answers
  5. Implementation ("do it")

  6. Write the function's Skeleton
  7. Write an Inventory of available expressions; note that as the data types get more complex, so will the inventory.
  8. Fill in the Function Body
  9. Correctness checking ("check that you did it right")

  10. Proofreading
  11. Syntax checking
  12. Testing and debugging

For the next elaboration of this, see version 3.


Last modified: Mon Aug 25 12:30:31 EDT 2008
Stephen Bloch / sbloch@adelphi.edu