Phlip said:
You know, nuisances like "only write testable code". Stuff that infringes
our freedom as programmers to write whatever we like...
If your religion can only be defended by
intentionally incorrect attributions, most
sane people will decide that it can't be
very good, then.
You want people to take you seriously? Stop
acting like an adolescent boy who just
discovered the second use of the penis.
I generally hate to come down heavily
on anyone, but I suggest that you bear in mind
that its difficult for people to think that
anything you suggest can be any good if
you have to resort to inflammatory and
flame-attracting statements to make your
point (see above).
I tried it, and reported on my experience
as honestly as possible (if anything,
I erred on the side of TDD in my reporting
so that I wouldn't unduly cast TDD in
a bad light). I basically compared what
I normally do with TDD and TDD came out
slightly behind; sorry - TDD would have come
out ahead if "the way I normally write code"
was a mess with no structure or forethought.
TDD, done like the way you said, had resulted
in an undetected bug in my toy project.
After detecting the bug (by *inspection*,
nogal), I fail to see a benefit at this point.
The code in question is downloadable from
www.lelanthran.com/downloads/os_mem
The fixed version (bug found accidently by
inspection) is downloadable from
www.lelanthran.com/downloads/os_mem2
Bug is in function find_ptr(), in
file os_mem.c. No test exists that would
have been certain of catching this bug.
Enjoy.
goose,
You might be able to see why I disbelieve
ridiculous claims if you weren't so
ego-invested into proving that TDD is
best for everyone, in every situation
and at all times. OTOH, I've not invested
my ego into proving or disproving TDD.
I think it's excellent for the
undisciplined or newbie developer.