Lecture 18.
Design - Architect
Coding - Engineer
Testing - Vandal!
Debugging - Detective
Always be a vandal!
Bad values, faulty logic and unwarranted assumptions (ex. feet instead of meters) causes bugs.
- Most of the problems are SIMPLE
- Be systematic
- Don't make assumptions about the problem(s)
- Be critical (< instead of >)
And don't panic!
Use println to find bugs. Ex. before and after a method or writing out variables.
Unit test - test one unit at the time (with values you give)