TDD is BS?

Jacob Carlborg doob at me.com
Wed Jun 19 14:06:26 PDT 2013


On 2013-06-19 19:29, H. S. Teoh wrote:

> Producing "minimal
> code" that satisfies the test simply gets you stuck in local minima
> without ever getting any nearer an actual solution for the problem.

Then your test doesn't cover enough cases.

> Before methodologies like TDD could even begin to work, one has to
> *solve* the problem at hand first -- analyse the problem, explore its
> structure, invent an algorithm, then one can verify the correctness of
> one's implementation with unittests. You have to already have an idea
> about how things are going to work, before TDD can help you.

I agree. I haven't watch the video(s) but I think TDD is for testing an 
implementation not a design.

Sometimes you can also test the design, or rather find wholes in the design.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list