, 8 tweets, 2 min read
My Authors
Read all threads
TDD. By which I mean the thing where you write a tiny test, see that it doesn't run, write just enough code to make it run, refactor the code to remove duplication and add clarity, repeat until done.

Why do we do that?

1/7
One word: productivity. A few words: most cost-effective path from here to done.

It's not about beauty, craft, a sense of pride, although it can provide all those things.

It's about using the most productive approach to getting our whole job done.

2/7
Why, you might ask, is it the most productive way? It sure does feel slow! Let me count some ways.

1. The code always works. We're never in that state where the thing almost works and we're not quite sure why it doesn't always work, or not quite sure even whether it works.

3/7
2. The code is well-designed and that helps us go fast. We can deliver more goods, faster, over a smooth road than over one riddled with potholes and detours. TDD keeps the road smooth.

4/7
3. We can find what we need rapidly, and change it easily if we need to. Everything appears once and only once, and is cleanly separated out. Modularity works, speeding our reading and adjustment of the code.

5/7
4. That's not slowness you feel, it is smoothness. The fastest driver, the fastest runner, the fastest swimmer is, above all else, smooth. No wasted motion. TDD keeps us from wasting motion.

6/7
Add your own observations and think about them. TDD is about productivity. It's about delivering the most working code per unit time and unit dollar. (Currency conversions provided elsewhere.)

TDD is about time and money.

It also feels really good. Whee!

7/7
Missing some Tweet in this thread? You can try to force a refresh.

Enjoying this thread?

Keep Current with Ron Jeffries

Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread 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!

Follow Us on Twitter!

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 ($3.00/month or $30.00/year) and get exclusive features!

Become Premium

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!