Modern Australian
The Times

Stuck on a problem? Talking to a rubber duck might unlock the solution

  • Written by Elliot Varoy, Senior Lecturer, School of Computer Science, University of Sydney
Stuck on a problem? Talking to a rubber duck might unlock the solution

You’re neck-deep in IKEA assembly instructions. Furniture parts lie strewn across the floor. Your new purchase sits half-complete in front of you, mocking your fruitless hours. As an uninterested partner walks in, you let the frustration out:

“I’ve done everything correctly! Look:

  1. connect A with B using M1 screws
  2. connect B with C with the M3 bolt using the key
  3. join BC with D using… wait.”

You suddenly realise you haven’t joined BC with D. It all starts to click into place (literally), et voilà, you’re finished.

It’s a universal experience: the moment you try to explain a problem out loud, it all begins to make sense.

Software engineers call it “rubber duck debugging”. So, where did this term come from and why is it so effective?

Explaining aloud

This well-known software engineering term has its origins in a story told in The Pragmatic Programmer, a book by Andrew Hunt and David Thomas.

The gist of it is that one should obtain a rubber duck, and use it when your code isn’t working – and you don’t know why.

Explain to the duck what your code is supposed to do, and then “go into detail and explain things line by line”.

Soon, the moment of revelation strikes: you realise, as you speak aloud, that what you meant to do and what you actually did are two very different things.

I often bring up rubber duck debugging in my introductory programming lessons, to help students when they can’t understand why their code won’t work.

Despite its roots in programming, the ideas that underpin the rubber duck approach apply to programmers and non-programmers alike.

Why does it work?

Most of us think out loud as we learn with our first books, reading aloud as we go. There’s something illuminating about articulating aloud that helps you “hear” the problem your brain has thus far been unable to detect.

And research by US scholars Logan Fiorella and Richard Meyer has examined how learning can be enhanced through the act of teaching others.

Their experiments found that when students learn the contents of a lesson as though they are going to teach it to others – and then actually teach it to others – they “develop a deeper and more persistent understanding of the material”.

Teaching others forces us to break the material down into conceptual pieces, integrating it with our existing knowledge and organising it in logical ways.

Their research also identifies “self-explaining” as an evidence-based learning strategy.

That’s why our little yellow friend is so helpful; in explaining the problem aloud to your rubber duck, you are teaching it as well.

The rubber duck and their blank, cute face

But why a rubber duck?

Well, talking to a human can come with certain limits.

Humans are contextual, with previous thought and experience; they may miss your mistakes because they’ve assumed something about your previous attempts to solve the problem. They may have internal biases that make it hard for them to see where you’ve gone wrong.

A rubber duck, however, has none of this. As silly as it might look, rubber ducking forces you to explain things in precise detail to that blank (cute) face looking back at you.

Of course, it doesn’t have to be a duck. Any old object (or uninterested party, as I seem to keep finding) will do in a pinch. Some researchers even advocate replacing the duck with a large language model such as ChatGPT. The AI chatbot can, they argue, “act as a virtual, hyper-intelligent, ever-present programming partner to a software engineer” wanting to walk through their code line by line to find errors – and suggest fixes, too.

Others have experimented with a modified rubber duck that, when the user presses a button, nods or offers brief, neutral replies to your explanations. The interactivity, the researchers argue, might make people feel more comfortable talking to a duck.

So, next time you’re stuck on a problem at work, suffering writer’s block or trying to make sense of a convoluted email chain, try turning to a little yellow duck.

See if explaining your problem aloud to them can help you arrive at the answer.

Authors: Elliot Varoy, Senior Lecturer, School of Computer Science, University of Sydney

Read more https://theconversation.com/stuck-on-a-problem-talking-to-a-rubber-duck-might-unlock-the-solution-261675

Your Baby's First Year: A Local Guide to Feeding, Sleep, and When to Get Extra Support

Ask ten parents in a Brisbane mothers' group how their baby is feeding or sleeping, and expect ten different answers.  Someone's baby sleeps throu...

Kitchen and Laundry Makeover Ideas That Don't Require a Full Renovation

Full kitchen renos are expensive — and most people don't actually need one.  They need the kitchen to stop looking like it's stuck in 2009, or t...

How Technology Is Reshaping the Modern Australian Commercial Kitchen

The commercial kitchen has always been shaped by technology. Refrigeration changed how ingredients could be stored, modern ventilation transformed k...

The Number on a Roller Blind Fabric That Nobody Explains

Somewhere in the fabric book, next to the colour name, there is a percentage. Three per cent. Five per cent. Ten per cent. Nobody explains it, most c...

What’s Trending in Men’s Jewellery This Father’s Day!

Finding a Father’s Day gift that feels personal, stylish and genuinely wearable is not always easy. While socks and novelty mugs have traditionall...

Road Signs: Understanding Their Role in Clear and Effective Signage

Effective signage and display hardware can help businesses communicate information, promote products and organise customer or visitor movement. Road...

Bottle Label Printing: Key Factors to Consider Before Your Next Packaging Run

Effective packaging begins with understanding the product, bottle material, artwork and production requirements when planning bottle label printing. H...

Planning a Long-Distance Move With Interstate Movers Melbourne

Moving between states involves more planning than a typical local relocation. Along with packing and transporting household belongings, you need to...

Understanding the Role of an I/O Controller in Industrial Automation

Modern industrial systems depend on accurate communication between sensors, machines and control systems. An I/O controller can help manage this commu...

How the Right Mining Hose Supports Demanding Operations

Mining environments place considerable demands on equipment used for material transfer, water management and processing. Hoses operating in these co...

Simple Ideas for Making Social Gatherings More Memorable

We have all been to those parties where everyone just stands around the kitchen island, staring at their phones, waiting for someone else to make a mo...

Outdoor Wall Lights: Improving Exterior Lighting Around Your Home

Lighting can influence how a room looks, feels and functions, so the right fitting should be selected according to both appearance and practical req...

Commercial Office Cleaning: Combining Routine Office Cleaning With Melbourne Service

Keeping a workplace clean requires a service that can accommodate everyday tasks as well as the particular needs of the business. Professional comme...

Caravan Sales in Queensland: How to Find the Right Caravan for Sale QLD

Caravan ownership is about more than having somewhere to sleep while travelling. For many Queenslanders, it is one of the best ways to explore regio...

What Sir Walter Buffalo Turf Actually Costs in 2026 (And Why Quotes Vary So Much)

Two quotes landed on a Hills District homeowner's kitchen table last spring for the exact same 80-square-metre backyard. One said $12 a metre. The o...

Nearly 1,300 NSW Hospital Beds Are Occupied By People Who Are Ready To Go Home

1,276 people in NSW hospitals have been medically cleared for discharge but remain in hospital because they're still waiting for NDIS or aged care sup...

National Survey Launched to Measure Operational Impacts of Federal NDIS Policy Reforms

The effects of recent NDIS reforms are beginning to move beyond policy papers and into day to day service delivery. A new national survey is asking ...

Beyond the Nappy Cake: Baby Shower Gifts That Get Used

What new Australian parents unwrap, keep, and quietly thank you for months later. Six weeks after my daughter was born, I did an audit of the baby sh...