Design Recipes
Basic design recipe for Scheme functions
(or functions in most other languages, for that matter!)
-
Understand the assignment
informally
- Write a function contract,
specifying what kind of information goes in and what kind comes out
- Analyze the data types going in and
out
- Write examples of how your
function will be used, with correct answers
- Write the function's Skeleton
- Choose and use an appropriate Template
- Fill in the Function Body
- Proofreading
- Syntax checking
- Testing
Last modified:
Wed May 30 13:08:31 EDT 2001
Stephen Bloch / sbloch@adelphi.edu