====== Design Recipes ====== ~~NOTOC~~ ===== Design Recipes from HtDP/2e: ===== * Figure 1: [[http://htdp.org/2018-01-06/Book/part_preface.html#%28counter._%28figure._fig~3athe-design-recipe%29%29|The basic steps of a program design recipe]] * Figure 52: [[http://htdp.org/2018-01-06/Book/part_two.html#%28counter._%28figure._fig~3atemplate-q%29%29|How to translate a data definition into a template]] * Figure 53: [[http://htdp.org/2018-01-06/Book/part_two.html#%28counter._%28figure._fig~3adefinition-q%29%29|How to turn the template into a function definition]] * Figure 56: [[http://htdp.org/2018-01-06/Book/part_two.html#%28counter._%28figure._fig~3adesign5%29%29|Designing a function for self-referential data]] ===== Design Recipes from HtDP/1e: ===== [[http://htdp.org/2003-09-26/Book/|HtDP/1e]] (look up //design recipe// in the index to find the following figures) * Design Recipe for Functions * Figure 3: The design recipe: A complete example * Figure 4: The design recipe at a glance * Figure 6: Designing the body of a conditional function * Figure 11: The design recipe for compound data: A complete example * Figure 12: Designing a function for compound data * Figure 17: The design recipe for mixed data: A complete example * Figure 18: Designing a function for mixed data * Figure 26: Designing a function for self-referential data * Figure 43: Designing groups of functions for groups of data definitions * Figure 69: Designing algorithms