Morendil comments on Coding Rationally - Test Driven Development - Less Wrong

25 Post author: DSimon 01 October 2010 03:20PM

You are viewing a comment permalink. View the original post to see all comments and the full post content.

Comments (82)

You are viewing a single comment's thread. Show more comments above.

Comment author: cousin_it 04 October 2010 11:44:31AM *  2 points [-]

Wha? I'm not even sure if you read my comment before replying! To restate: the only reason you ever modify the method of drawing a line segment is to change the sequence of emitted API calls (or output XML, or something). Therefore a unit test for that method that nails down the sequence is useless. Or is it me who's missing your point?

The cost to fix a defect you have just introduced is typically a few minutes; the cost to fix the same defects a few days, weeks or months later can be orders of magnitude bigger, rising fast with the magnitude of the delay.

For the record, I don't buy that either. I can fix a bug in our webapp in a minute after it's found, and have done that many times. Why do you believe the cost rises, anyway? Maybe you're living in a different "world" after all? :-)

Thanks for the links about Eclipse, they don't seem to prove your original point but they're still interesting.

Comment author: Morendil 04 September 2012 09:07:40AM 2 points [-]

For the record, I don't buy that either. I can fix a bug in our webapp in a minute after it's found, and have done that many times. Why do you believe the cost rises, anyway?

For the record, cousin_it was entirely right to be wary of the rising-cost-of-defects claim. I believed it was well supported by evidence, but I've since changed my mind.