Lesson 14: Bottoms up!
Outline:
- Questions?
- Refactoring to use functions
- Error handling with conditional code: Exercise 1
- Test-driven development
- unit testing
- test-driven development: Exercise 2, part a
- 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:
- Test-driven development
- more types of tests: Exercise 2, parts b-d
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)