News for hackers. Stuff that matters.
Re:Is TDD Dead? (2014) by tonyedgecombe on Wednesday August 26, 2020 @10:27AM (#24282760)
Sometimes you’re in a hurry to fix a bug

Most of the time I find it faster to write the test first. If you haven't got a test what are you going to do? Manually test?

Re:Is TDD Dead? (2014) by MockObject on Wednesday August 26, 2020 @11:04AM (#24283094)
And since everything usually takes longer than expected, the benefit of automating that manual testing is usually greater than expected.
Re:Is TDD Dead? (2014) by hnick on Thursday August 27, 2020 @01:35AM (#24290447)
We tend to have a web focus on this site but not all IT is like that.

If I have a data processing job that takes 3 hours and it fell over at the 1 hour mark (and let's say whoever wrote it didn't have the foresight to make it resume neatly, because that's added complexity that never got budgeted), I'm going to fix the obvious bug and kick off reprocessing immediately. Possibly after some messing around in a REPL to confirm how the code acts.

While it's going, I can then do some manual tests and sanity checks and cancel/restart if necessary - but if not, I've gained a lot of time.