Hacker News new | ask | show | jobs
by daleharvey 6151 days ago
tests tests tests

I use a little tool that runs unit tests on compilation, when Im doing something new that unit tests works well with, I write a bunch of tests and just code until I have 100% tests passing.

1 comments

Exactly. We aren't writing code on punch cards, getting it right the first time isn't a huge deal.

If you make a lot of mistakes, have sanity tests cover your ass.