Some days I'm really frustrated by people holding opinions in the face of experiments and data showing the opposite. It's one thing to say that the experiment isn't valid (and then please say why you think so), it's another to misread it entirely.
I'll be the first to admit that experiments around things like TDD are hard, but Medium posts like this one don't even attempt to look at the literature. blog.usejournal.com/lean-testing-o…
To inject some data into the discussion, sciencedirect.com/science/articl… is a good survey on the research on #TDD through 2014.
A table from that paper. Ignoring productivity (which I partially attribute to inexperience or poor training), everything else is in favor of #TDD (these are the "high rigor/high relevance" studies).
Even the "low relevance" (but stil "high rigor") studies indicate that you are pretty likely to do better, and possibly no difference, so why not do #TDD?
And btw, "relevance" here indicates whether it was in an industrial or industrial-like setting, vs. a lab.
And, as studies like this mention, most empirical studies "tend to neglect whether the subjects possess the necessary skills to apply #TDD." So with more/better training in this complex skill, folks could do even better! sciencedirect.com/science/articl…
This study is interesting, in that it's qualitative/ethnographic and highlights difficulties in doing #TDD, e.g., it's not test-first that's hard, it's "switching from a plan-intensive mindset to a lightweight and flexible one"
sciencedirect.com/science/articl…
Just doing the tests first, in other words, is the easy part, but if you've already fully mapped out and planned the implementation in your head, you're not really doing #TDD, you're just doing Test-First.
The study also shows that when learning #TDD, you need to also be learning Refactoring, otherwise you're not getting the real benefit of your new-found knowledge about the code and applying that knowledge by refactoring.
The conclusions are unsurprising to those who teach #TDD.
I discount the "it takes more time to do TDD" or "lower productivity" results in these papers because of things like "the increase in time [is] attributed to the usage of the TDD practice, as subjectively estimated by management." Estimated. By management.
Missing some Tweet in this thread?
You can try to force a refresh.

Like this thread? Get email updates or save it to PDF!

Subscribe to Ted M. Young (dev guacamole)
Profile picture

Get real-time email alerts when new unrolls are available from this author!

This content may be removed anytime!

Twitter may remove this content at anytime, convert it as a PDF, save and print for later use!

Try unrolling a thread yourself!

how to unroll video

1) Follow Thread Reader App on Twitter so you can easily mention us!

2) Go to a Twitter thread (series of Tweets by the same owner) and mention us with a keyword "unroll" @threadreaderapp unroll

You can practice here first or read more on our help page!

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just three indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member and get exclusive features!

Premium member ($3.00/month or $30.00/year)

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!