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

Vista Cruises Enters "Two-Flagship Era" as Vista Aurora Completes Inaugural Voyage

Vista Aurora Sets Sail along the Yangtze. (Photo courtesy of the company)YICHANG, China — August 5, 2026 — Vista Aurora, a high-end interprovinc...

A Digital Preparation Checklist For International Medical Conferences

An international medical conference compresses many responsibilities into a few days. A delegate may need to present research, move between venues, ...

The Growing Popularity of Lab Grown Diamonds in Sydney and Hong Kong

The diamond industry has changed significantly in recent years as more buyers seek ethical, affordable, and sustainable alternatives to mined diamon...

Modern AI SEO Agency vs Traditional SEO: What’s the Difference

Search engine optimisation has changed dramatically over the past few years. Search engines have become smarter, user behaviour has evolved, and bus...

Caravan Travel for Modern Australian Getaways: Plan a Comfortable Holiday

A family road trip is one of the best ways to explore Australia together. And, travelling by caravan gives you the freedom to take your time, stop a...

Mini Excavator and Trailer Package for Sale: What I Buy as One Deal in 2026

The first client who asked me for a mini excavator and trailer package for sale wasn’t trying to save a few hundred dollars on shipping. They we...

Make Dad a Guest in His Own Home This Father’s Day

Father’s Day can accidentally turn Dad into the unpaid event manager of his own celebration. He lights the barbecue, finds extra chairs, checks wh...

Where to Enjoy Your Off-Road Caravan on the Gold Coast

With a caravan, you can travel anywhere and everywhere without battling the rush of the peak holiday season or last-minute reservations. While the r...

How Osteopathy Supports Recovery from Sciatica and Nerve Pain

Sciatica isn't just annoying. It's genuinely painful. It sits deep in your glute and shoots straight down the back of your leg. It turns something as...

The Winter Jewellery Edit: Five Pieces You'll Wear All Season

As wardrobes shift to cosy knits, tailored coats and rich seasonal textures, jewellery becomes the finishing touch that pulls every winter outfit to...

7 Signs It's Time to Upgrade Your Piston Air Compressor

If you run a workshop, panel shop, or fabrication business anywhere around Perth, you already know what heat and dust do to equipment over a few sum...

How Long Do Bathroom Renovations Melbourne Take? Step-by-Step Process Explained

Planning a bathroom renovation is exciting, but one of the biggest questions homeowners ask is, "How long will it take?" While every project is uniq...

Why Your Skin Breaks Out: The Science of Acne Explained

Acne is the most common skin condition in the world. An estimated 85% of people experience it at some point between the ages of 12 and 24, and a gro...

10 Swimwear Trends Australian Women Are Wearing This Summer

Every Australian summer brings a fresh wave of swimwear trends, but some styles have much greater staying power than others. While fashion constantly ...

Why Regular Skills Updates Are Essential for Licensed Security Officers

A guard at a Brisbane shopping centre gets a call about a shoplifter who's turned aggressive.  They’ve done the job for six years. But their de-...

10 Benefits of Choosing Professional Tutoring Penrith Services

Every student has unique learning strengths, challenges, and academic goals. While classroom teaching provides essential knowledge and structure, so...

Sunshine Coast Baby Classes Prove Big Hit Among First-Time Mums

There's a movement gaining traction on the Sunshine Coast, providing a village of support, socialisation and relief for first-time mothers and babie...

Father's Day Gift Ideas for Men Who Are Hard to Buy For

Some dads are easy to buy for. Others do not want anything, already have everything, or give you the classic "don't worry about me" answer every yea...