TDD is BS?

Simen Kjaeraas simen.kjaras at gmail.com
Fri Jun 21 13:24:11 PDT 2013


On Fri, 21 Jun 2013 21:11:51 +0200, Walter Bright  
<newshound2 at digitalmars.com> wrote:

> Whether you write the unit tests before, during, or after the module is  
> written is irrelevant.

I mostly agree with this, but there is one reason to write tests before
implementing - you don't know the code yet. This way you don't filter out
stuff that you think is unnecessary because you know the code handles it.

Of course, the converse is also true - write tests after writing the code,
because you then know the code and have a better idea of what the corner
cases are.

-- 
Simen


More information about the Digitalmars-d mailing list