Comment on Ask HN: How to reduce sloppy mistakes?Comments−daleharvey17ytests tests testsI 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.−mrtron17yExactly. 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.
Comments
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.
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.