Lesson 14: Bottoms up!

Outline:

  1. Questions?
  2. Refactoring to use functions
  3. Error handling with conditional code: Exercise 1
  4. Test-driven development
  5. Project work time
    • if you haven’t already, diagram your program using top-down design
    • write tests for a function at the bottom of your diagram
    • implement that function – do the tests pass?

Explore after class:

  1. Test-driven development

What’s next

Upcoming events/assessments:

  • CS Bits and Bytes tomorrow from 4:30pm-5:30pm in Olin 149: John Clapp ‘91 from Deriva Energy
  • Carleton Undergraduate Research Symposium: Friday Oct. 17 from 4:30pm-5:30pm in the Rec Center
  • Homework assignment 5 is due tomorrow!

What you should do now:

  • The readings (see below)
  • Finish and submit Assignment 5
  • Keep working on your project using top-down design and test-driven development

Reading assignment (to be completed by the next class):

  • Zelle section 5.7 (pp. 155–158)
  • Zelle section 6.4 (pp. 179–183)
  • Zelle sections 11.4–11.6 (pp. 351–357)