Defensive Coding

Level Description
Level 0 Doesn't understand the concept
Level 1 Checks all arguments and asserts critical assumptions in code
Level 2 Makes sure to check return values and check for exceptions around code that can fail.
Level 3 Has his own library to help with defensive coding, writes unit tests that simulate faults

Resources

  • Test item