Design Recipes

Basic design recipe for Scheme functions

(or functions in most other languages, for that matter!)
  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. Write the function's Skeleton
  6. Choose and use an appropriate Template
  7. Fill in the Function Body
  8. Testing

Last modified: Wed May 30 11:45:43 EDT 2001
Stephen Bloch / sbloch@adelphi.edu