Re:"Joel Spolksy is wrong about my work" - Kent Beck
by swombat on Wednesday February 04, 2009 @09:39AM
(#465779)
You're assuming that you'll get something in front of users more quickly without writing tests. I find that's not the case in my experience.
[ Parent
| on HN ]
Re:"Joel Spolksy is wrong about my work" - Kent Beck
by nostrademons on Wednesday February 04, 2009 @01:06PM
(#466160)
I find there's a balance to be struck. You want to get stuff in front of users quickly, but if that stuff sucks so much that it's unusable, you aren't going to release it (and if you did, nobody would use it). So you want enough tests that you can be reasonably confident of the code and not spend a lot of time debugging, since debugging is the real timesink that'll kill you.
I often find that I unit test all but the latest layer. As soon as I start depending on code from something else, it's time to write some tests. But if I just wrote something, it's probably in flux and tests would just prematurely lock down the interface. Write the code, write the client (which probably requires that you rewrite the code), and then write the tests in lieu of debugging the code.
Re:"Joel Spolksy is wrong about my work" - Kent Beck
by trapper on Wednesday February 04, 2009 @07:27PM
(#466824)
Also, to get something in front of users, you rarely need to be doing anything remotely complex. It's not like writing a disk based inverted index or a filesystem. When writing tools like those, obviously testing is important.
Re:"Joel Spolksy is wrong about my work" - Kent Beck
by trapper on Wednesday February 04, 2009 @06:04PM
(#466697)
I'd love to see some research on this. I would hypothesize that there is a point of problem complexity where the lack of tests becomes a negative for productivity.
Re:"Joel Spolksy is wrong about my work" - Kent Beck
by mrandle on Thursday February 05, 2009 @11:39AM
(#468160)
I second this suggestion (and agree with the hypothesis, although its probably not just a function of raw problem complexity, other variables must come into play)
Hasnt it been done already? Couldnt find anything I would class as 'scientific' with a quick google search. Would be a good thesis for someone.