Skip to content

dap6000/How-to-Design-Programs-2ed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

How to Design Programs, Second Edition

Watch me stumble my way through [HtDP2e] (http://www.ccs.neu.edu/home/matthias/HtDP2e/)

Recreation of Figure 1

The basic steps of a function design recipe

  1. From Problem Analysis to Data Definitions Identify the information that must be represented and how it is represented in the chosen programming language. Formulate data definitions and illustrate them with examples.

  2. Signature, Purpose Statement, Header State which data the desired function consumes and produces. Articulate what the function computes as a concise one-line statement. Define a stub that lives up to the signature.

  3. Functional Examples Work through examples that illustrate the function’s purpose.

  4. Function Template Translate the data definitions into an outline of the function.

  5. Function Definition Fill in the gaps in the function template. Exploit the purpose statement and the examples.

  6. Testing Articulate the examples as tests and ensure that the function passes all. Doing so discovers mistakes and also helps others read and understand the definition when the need arises—and it will arise for any serious program.

About

Working through http://www.ccs.neu.edu/home/matthias/HtDP2e/

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages