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. Write examples of how your function will be used, with correct answers
  4. Write the function's Skeleton
  5. Fill in the Function Body
  6. Testing

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