Re:On Programming Deadlines
by wazoox on Tuesday November 01, 2011 @10:38AM
(#3182207)
TDD is particularly valuable (I'd even say unavoidable) when writing modules, libraries and so on. It's extremely helpful on some tough program parts that aren't enough defined in behaviour by the spec. Writing tests first in these case will avoid you countless traps, particularly in "the other 90%" as mentioned in the Cargill's law:
[ Parent
| on HN ]
Re:On Programming Deadlines
by arctangent on Tuesday November 01, 2011 @01:17PM
(#3183056)
I can see how TDD could be useful for writing a relatively static piece of code, especially code that is likely to be reused by a lot of people.
But I develop web applications in 1-week sprints for my stakeholders and they're likely to change their mind about what they want at short notice.
In these circumstances it simply doesn't make sense to write tests up front. I don't even have time to write a lot of tests when I'm done :-(