previous | start | next

## Strategies

- Know what your program should do.
  - Does your program do what's expected?
  - Before you inspect a variable, decide what value is should have.
    - If value is correct, look elsewhere for the bug.
    - If value is incorrect, double check your computation, then try to find out why your program comes up with a different value.
  - Look for off by one errors.
  - Look for computation errors (is the formula typed in correctly).
  - Make "sign calculations" when the numbers get nasty. ("Should this number be positive or negative?")

previous | start | next