Skip to content

Latest commit

 

History

History
8 lines (7 loc) · 395 Bytes

09-Avoiding Debugging.md

File metadata and controls

8 lines (7 loc) · 395 Bytes

09-Avoiding Debugging

  • Avoid debugging
    • make bugs impossible with techniques like static typing, automatic dynamic checking, and immutability
  • Keep bugs confined
    • failing fast with assertions keeps a bug’s effects from spreading
    • incremental development and unit testing confine bugs to your recent code
    • scope minimization reduces the amount of the program you have to search