DEV Community

Discussion on: Here's What You Can Learn In 10 Minutes That Will Be Useful For The Rest Of Your Programming Career

Collapse
 
kaitainjones profile image
Kaitain Jones

When this happens, it is your job to put on your detective hat and determine exactly which line of code is doing the wrong thing.

Or set security guards on the doors to stop the crime taking place. Use Design By Contract, and place preconditions at the start of methods and postconditions at the end. They will catch 95% of your bugs.