threadreaderapp.com/thread/1217120…
Here's one: a respondent says, "If I write a lot of small tests and I change how a feature works, I have to change or throw out all those microtests, which is a lot of work."
"We're in this for the money."
I do TDD because doing TDD lets me ship more value faster, and shipping more value faster is how I make money.
When I do have microtested TDD available to me, I add value more quickly. When I don't have it available to me, I add value more slowly.
Oh for crying out loud, of course I have a theory. What kind of fat old bearded geek grayhair would I be if I didn't have a theory?!?
Hmph. "Do I have a theory." The nerve of some people.
Spoze I write 100 lines of production code a day. TDD says write microtests, also code, at ratio around 1 to 1. That means now it's only 50 prod & 50 test. Therefore, TDD must be less productive.
QED, friends, because *math*!!
<sigh>
(100 lines of 80 characters divided by the standard 5 chars per word and 420 minutes a day.)
I have this experience -- to me it's data, but I'm not here to argue that today -- that I ship more value faster when I TDD. Basic math doesn't account for this, so I need a theory that *does* account for it.
I hope you have a secret comforting thing going on today, too!
Catchya later!