, 5 tweets, 1 min read Read on Twitter
So you're a programmer, and there's this thing where you produce some code, and some time later you, a colleague, a tester, or a user finds a problem with it. Maybe they give you an example. It's rarely a very good example.

1/5
When you go to deal with the problem, you refresh your mind on the code -- after all, you've been doing other things -- and you try to isolate the defect.

Usually if you have an example you have to refine it, either as a simpler test or just by stepping and probing.

2/5
The code-test-fix delay slows the delivery of good code. The interruption slows down what you were planning to work on. The relearning of the code is limited and you often don't work with it as smoothly as when you wrote it.
The example, if you got one at all, was flaky.

3/5
The problems you're handed tend to be larger, with multiple causes.,
Almost everything you learned debugging and stepping goes by the wayside: it has no good way to take up permanent residence in your mind or in the code.

4/5
All this bad stuff is caused by coding, then testing, then fixing.

We can turn this around.

We call our shot: produce the example first, ideally a tiny one.
We program until the example works.
We repeat.

We call this TDD.

5/5
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 Ron Jeffries
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!

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!