Defining problems · 5 min
Rubber duck debugging
Learn why explaining a problem out loud, even to a toy, so often reveals the answer.
What the sources describe
The name comes from 'The Pragmatic Programmer' (1999) by Andrew Hunt and David Thomas. They describe a programmer who kept a rubber duck on his desk and explained his code to it, line by line, whenever he got stuck.
The trick works because explaining forces you to slow down and state every step and assumption. In your head you skip over parts you think you understand; out loud, the gap between what the code should do and what it actually does becomes obvious.
Psychologists have studied a related 'self-explanation effect'. In research led by Michelene Chi in 1989, students who explained worked examples to themselves learned more and solved problems better than those who just read them.
Many people notice the same thing when they start writing a question for a colleague or online forum and suddenly see the answer before sending it. The listener doesn't need to understand — the duck never replies.
The method works for any problem with steps: a budget that doesn't balance, a recipe that failed, or an argument that feels wrong. In 2018 the programming site Stack Overflow even ran an April Fools' 'Quack Overflow' duck feature.
Connecting the ideas
Explaining a problem step by step exposes hidden assumptions and gaps in your own understanding.
The big idea
Rubber duck debugging is cheap, private and fast. It helps because explaining changes how you think: you must put steps in order and justify each one. It also saves colleagues' time, since many problems are solved before anyone else is asked. If the duck doesn't help, your explanation is a ready-made, clear question for a person.
Use it in real life
Next time you're stuck, explain the problem out loud to an object, pet or empty room. Start from what you expected to happen, then describe each step in order. Stop when you reach a step you can't justify — that's often where the problem is.
Try it
Made-up example: a student's maths answer is wrong and they can't see why. How could rubber duck debugging help?
A good answer: explaining each step aloud would show which step they can't justify, such as a sign error, often revealing the mistake without help.
Quick quiz
1. Where does the term 'rubber duck debugging' come from?
2. Why does explaining a problem aloud help?
3. What did research on the self-explanation effect find?
Finished reading?
Make this the next Doom video?
Vote for the lessons you'd most like to see turned into a short animated story.
How was this lesson?
No ratings yet — be the first.
Sign in to rateSources
Overview sources only. These references are not a completed primary-source fact-check.
Limitations
Overview source.
Voice: Debby — Soft and soothing (tap to change)
Debby narration · part 1 of 16
