Program as communication
Every program is an act of communication:
- Between you and the computer
- Between you and yourself in the future
- Between you and others
Questions to ask ourselves:
- What are we trying to do?
- How are we doing it?
Comments
“;;” for the entire line of comment
“;” for part of the line
Design Recipe
The design recipe is a process for developing a function.
There are 3 main purposes:
- Writing it helps you understand the problem
- It helps you write understandable code
- It helps you write tested code so you have some confidence it does what it should