Hacker News new | ask | show | jobs
by _random_ 4497 days ago
First step of unit testing is picking the correct language. Static analysis will eliminate the need for whole class of errors. Then apply code contracts. Consider extending your static analysis package of choice to add rules specific to your application. As the last step write unit tests to cover your core business logic - something the computer can't figure out for you. Realizing that unit tests are basically poor man's static analysis is the first step to becoming better at writing them.