Back to TeachScheme! workshop
Back to Recipes
Design recipe for Scheme programs, version 2
(or functions in most other languages, for that matter!)
Analysis and design
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
Coding
Write the function's
Skeleton
Choose and use an appropriate
Template
Fill in the
Function Body
Testing & Debugging
Testing
Last modified: Thu Mar 13 16:16:56 EST 2003
Stephen Bloch /
sbloch@adelphi.edu