An External Replication on the Effects of Test-driven Development [pdf]
21–30 of 332 posts
Re: An External Replication on the Effects of Test-driven Development [pdf]
#22As someone who uses unit tests to find bugs in my code, that I would never otherwise find, this is surprising.
Re: An External Replication on the Effects of Test-driven Development [pdf]
#23It may not boost productivity upfront, but it saves a lot of time down the line by alerting you when something is out of place.
No, that's the value of automated regression test. TDD is just one way to skin that particular cat.
Re: An External Replication on the Effects of Test-driven Development [pdf]
#24Re: An External Replication on the Effects of Test-driven Development [pdf]
#25Could it be that TDD vs. tests-after-code is a highly personal thing? I personally find it easier to write good tests after I've coded something functional. Before hand, I know one or two fuzzy ideas of what I want to accomplish, but I can't list out the concrete, real-world test scenarios until after I've coded something, poked and prodded it, etc. But I know some people are wired differently; they'll think a lot mo…
Sometimes writing tests first helps me think about the high-level design of my code. Other times I've got to try a few things before I have any idea what the code should look like, and writing tests first would just create a lot of extra code churn. I feel that, as time goes on, I'm getting better at anticipating which situation I'm in. I also switch back and forth between the two testing methods even more rapidly.
Re: An External Replication on the Effects of Test-driven Development [pdf]
#26Re: An External Replication on the Effects of Test-driven Development [pdf]
#27Earlier quoted context omitted.
Can you elaborate?
If you write testable software and actually write the tests, the end result is the same whether you test first or test later. You're designing with testing in mind and creating useful tests either way. It's really a matter of code that lacks tests that's an issue and especially of code which isn't designed with testing in mind. I think they overinterpreted the value of TDD as simply test-first. Test first can be good…
My attempts to work in a TDD style ran up against decades of intgrained habits and I never really found it satisfying or natural.
Re: An External Replication on the Effects of Test-driven Development [pdf]
#28I'm not making a stand about TDD here - I just think we need to have much better computer engineering science studies if we want to have significant results.
Re: An External Replication on the Effects of Test-driven Development [pdf]
#29...when implemented poorly
Re: An External Replication on the Effects of Test-driven Development [pdf]
#30As someone who uses unit tests to find bugs in my code, that I would never otherwise find, this is surprising.
That not TDD, though. It's more similar to test-after.