3 ms·
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 the
by gleenn 4y ago
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.
- majikandy 4y agoNot 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.
- Double_a_92 4y agoAlso 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".)