TDD is BS?

H. S. Teoh hsteoh at quickfur.ath.cx
Wed Jun 19 14:19:28 PDT 2013


On Wed, Jun 19, 2013 at 11:06:26PM +0200, Jacob Carlborg wrote:
> 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.

How do you write a test that covers "enough" cases for a sudoku solver?


> >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.
[...]

Doesn't TDD stand for Test-Driven *Design*?


T

-- 
Those who've learned LaTeX swear by it. Those who are learning LaTeX swear at it. -- Pete Bleackley


More information about the Digitalmars-d mailing list