10 ms·
I keep wanting to be converted to TDD, but I can't shake the feeling that I'd be writing half the code in twice the time.
by GnarfGnarf 4y ago
I keep wanting to be converted to TDD, but I can't shake the feeling that I'd be writing half the code in twice the time.
- dbrueck 4y agoThat's accurate. Worse, as the complexity of the scenario you're trying to test goes up, not only does the cost of creating the test go up, the cost of maintaining it almost always goes up too.
- twic 4y agoWriting half the code sounds pretty good.
- GnarfGnarf 4y agoNo, I didn't mean doing the job in half the code (which for sure is better). I meant writing half the code that needs to be written, and then writing the other half that needs to be written, in addition.
- joshstrange 4y agoYep, I'm pretty anti-test because I've yet to see it ever payoff at any company I've worked at. That said, I keep hoping I'll catch the bug, be converted, have it click in my head. On the surface it seems quite nice but it's always with trivial examples. When you are dealing with real code I've had testing fall apart very quickly and/or make refactors extremely painful. And on top of it all, you are writing twice as much code in a world that doesn't care that you wrote tests, meaning it takes you longer to do that same work