Every developer knows this moment. You're stuck, you give up and walk over to a colleague. You start explaining: so this function gets the user, then it checks the role, then... and you stop. Never mind. Got it.
Your colleague didn't say a word, and that silence did most of the work.
The duck on the desk
Programmers turned this accident into a habit. It's called rubber duck debugging, and the name comes from the book The Pragmatic Programmer. The idea is almost too simple: keep a rubber duck on your desk, and when you're stuck, explain your code to it line by line. Out loud. Seriously.
It sounds like a joke, and it partly is. But it keeps working, which is why it has stuck around in dev culture. Teams I've worked with have used plush toys, a plant, or simply a teammate whose only job is to nod.
Why it works
Psychology has a name for the mechanism: the self-explanation effect. When a problem lives in your head, it's allowed to be fuzzy. Your brain happily skips steps, because it already thinks it knows them. Speaking forces order. You have to go from A to B to C, and when there's no real B, you hear it.
The listener matters less than the explaining. That's why the duck works. It can't answer, so you can't hand the thinking over to it. You have to finish the thought yourself.
The same trick, outside code
What I keep noticing is that this habit has nothing to do with code. It's about making a messy thought explicit. That applies to plenty of things that aren't bugs.
A hard email. Before writing, say out loud: what do I want this person to do after reading it? If you can't say it in one sentence, the email will ramble, and you'll have found that out before hitting send.
A money decision. Explain it to an imaginary friend who knows nothing about your situation. Why this purchase, why now, what happens if you wait a month. Reasons that felt solid in your head can sound surprisingly weak once they're spoken.
A fight with someone close. Say your side slowly, out loud, alone. Some sentences will sound fair. Others will sound like something you'd roll your eyes at if a friend said it. That's useful to learn before the conversation, not during it.
A work decision as a team lead. Before I bring a problem to a meeting, I try to explain it as if to someone new on the team. Often the meeting turns into a short message, or turns out not to be needed at all.
Where the duck fails
To be fair, this isn't magic. Some problems are missing information, not missing clarity, and no amount of talking to a plastic bird will give you facts you don't have. Talking to yourself can also turn into going in circles, replaying the same worry instead of moving through it.
So I don't think of the duck as a replacement for advice. It's the step before advice. Either you solve the problem yourself, or you go to a real person with a much sharper question. Both outcomes save the other person's time, which they'll appreciate more than they say.
How to try it today
- Pick your duck. It can be a pet, an empty chair, a voice note to yourself, or an AI chat where you only explain and don't ask for the answer yet.
- Explain the problem from the beginning, slowly, as if the listener has no context.
- Every time you say and then somehow, stop. That's the gap.
- Only after that, ask for help if you still need it.
The first few times feel silly. That's normal. Developers have been talking to ducks for a long time and the duck has never once complained.
Your turn
Who or what is your rubber duck: a pet, a friend, a voice note, an AI chat, the shower? And why do you think it works for you?
Top comments (0)