Example 1: Debugging a simple calculator program
The code should add two numbers together, but instead it prints the wrong result. What do you do?
A) Read the code again, slowly and carefully
B) Use a debugger to step through the code
C) Call for help from a colleague
D) Throw a tantrum and shout "IT'S POSITIVE INFINITY!"
Remember, debugging is not just about finding the bug, it's about finding the bug, then finding the bug in the code that was trying to find the first bug...