Re:I have complicated feelings about TDD
by gleenn on Thursday August 18, 2022 @02:36PM
(#32513292)
There's a name for it, it's called a "spike". You write a bunch of exploratory stuff, get the idea right, throw it all away (without even writing tests) and then come back doing TDD.
[ Parent
| on HN ]
Re:I have complicated feelings about TDD
by Double_a_92 on Friday August 19, 2022 @08:55AM
(#32520382)
Also not sure why you are getting downvoted. We call it "breakthrough", as in piercing though all the layers to connect one simple usecase from front to end.
Once we established that that works properly, we think of a way to do it clean and tested for all other usecases.
(In the book "the pragmatic programmer" it's called "tracer bullets / code".)
Re:I have complicated feelings about TDD
by majikandy on Friday August 19, 2022 @03:00AM
(#32518203)
Not sure why you got downvotes for this. It is a very effective technique.
Since typing speed was never the bottleneck in software development. Throwing away the little bit of code you wrote, it not expensive. And writing it back in with TDD is incredibly efficient.