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")
-
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
Implementation ("do it")
- Write the function's Skeleton
- Write an Inventory of available
expressions; note that as the data types get more complex, so will the
inventory.
- Fill in the Function Body
Correctness checking ("check that you did it right")
- Proofreading
- Syntax checking
- 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