Agenda

  1. Warm-up: Trace It — a function called inside a loop
  2. Refactor together: take a Unit 2 program with a repeated block, pull the block out one step at a time, running it after each step
  3. Compare and name it: modularity, in Decomposition and Design — code you can lift out and use somewhere else

Things to do before our next class

  • Refactor one of your own the same way. Keep both versions.