Hacker News new | ask | show | jobs
by __MatrixMan__ 913 days ago
That's what you get when you don't write the tests first.
1 comments

That's just doubling your work. If you don't already have a spec, your unit tests and actual code are essentially the same code, just written twice.
Determining which states are authentically hazardous and mocking data and adjacent services to make those states accessible at the press of a button is definitely not the same as writing code which handles those states appropriately.