Google AI


Modern Australian

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

Better Business Photos Without Misleading Customers: An Australian Guide

A timber dining set looks inviting against a sunny deck, with cushions, lanterns and enough chairs for the whole family. But imagine the retailer sell...

Understanding a dental implant Melbourne Treatment Plan

A dental implant Melbourne patients may consider is one option for replacing a missing tooth, but suitability depends on oral health, bone support a...

How 3PL Logistics Australia Supports Faster and More Efficient Supply Chains

Why Has 3PL Logistics Become Important for Growing Businesses?  Gone are the days when supply chains were simpler and in minimal quantity. Now, the...

Common Skin Concerns and Treatment Options Available in Melbourne

Skin concerns can develop gradually or become noticeable following changes in age, lifestyle, sun exposure or hormonal factors. Pigmentation, rednes...

Why a Code-Compliant Home Can Still Feel Uncomfortable

When people build or renovate a home, they usually expect that meeting current building requirements will also produce a comfortable place to live. ...

Breach of Contract in Business: What Are Your Options?

Contracts are essential to business relationships. They establish expectations, allocate responsibilities and provide a framework for delivering goods...

How Pest Control Companies Can Rank for the Problems Customers Search First

Introduction SEO for Pest Control needs to start with the customer’s problem. Most people do not search for pest services in a neat or technical wa...

What Are the Benefits of Renovating an Older Home in Sydney?

Sydney has plenty of character homes, from Federation cottages to mid-century brick homes. Renovating rather than rebuilding can preserve what makes t...

Pool and Deck Design: How to Plan the Perfect Outdoor Living Space for Your Sydney Home

For many Australians, the backyard is where life happens. Summer barbecues, weekend swims and long evenings outdoors are all part of the lifestyle, ...

Is Solar Pool Heating Worth It? What Sydney Homeowners Should Know

There's nothing quite like a backyard pool on a hot Sydney day. But once autumn rolls in, many pools sit unused for months because the water is simp...

Planning a Luxury House Move: A Week-by-Week Timeline for Prestige Sydney Homes

Selling or buying a prestige home is a major milestone. Whether it's a waterfront residence in Birchgrove, a grand Federation home in Haberfield or ...

Downsizing or Upgrading Your Caravan? Here's How to Sell It Without the Hassle

Selling a caravan can feel like a major task, especially when you are unsure about its value, paperwork, or how to find a buyer. Whether you are dow...

The Best Overseas Adventure Holidays for Australians Who Love the Outdoors

Australia offers no shortage of incredible outdoor experiences, but sometimes the best way to satisfy your sense of adventure is to head overseas. A...

Cape Town Wine Shuttle: Winelands Tasting & Tours

Embark on an unforgettable journey through the picturesque Cape Winelands, where world-class wines and breathtaking scenery await. Our Cape Town Win...

Metal Fabrication: Choosing Metal Fabrication Melbourne Services for Custom Projects

What Modern Metal Fabrication Involves From individual components to complete structures, metal fabrication brings together processes such as desig...

Why Giant Rats Tail Grass Keeps Coming Back After Spraying

Giant Rats Tail Grass (GRT) is one of the most frustrating pasture weeds for farmers and lifestyle property owners. You spray an infested area, see th...

When Custom Cardboard Boxes Make Sense for Your Business

Custom cardboard boxes can be useful when a standard carton does not fit a product, packing method or presentation requirement particularly well. A ...

Full-Height vs. Pop-Top Caravan: Which Is Better for Family Travel across WA?

A pop-top caravan is an excellent choice for travellers who want the comfort of a caravan without committing to a larger, bulkier setup. With a lowe...