3 ms·
TDD does work, and I use it in practice. I know a whole company full of people who all use it in practice, and it works. I have a guess about why HN likes to u
by jmathes 15y ago
TDD does work, and I use it in practice. I know a whole company full of people who all use it in practice, and it works.
I have a guess about why HN likes to upvote opinion pieces that hate on TDD. TDD initially feels like it takes discipline. It's natural to dislike things that require discipline. I think people are trying TDD, finding that it doesn't work as advertised, and gravitating towards the most pleasant explanation: that TDD sucks. They never consider the alternate explanation: you're doing it wrong.
- petercooper 15y agoI agree, from the perspective of once being one of those people. I'm seeing a parallel with fitness or eating right. If you leap into a diet or heavy fitness regime right away, it really sucks for a while. But eventually it works out. Practicing mindful, intelligent TDD and object oriented design results in a similar experience. There's a "dip" you need to plough through before things start to click.