JTech Communications Logo
JTech Communications

Talking out code…with a duck.

By Mira Brody - Last Updated on 10/10/2016
Rubber Ducky, you're the one...
In many instances, talking to yourself is portrayed as a sign of mental instability. In web development, however, it is considered a healthy daily exercise, better known as Rubber Ducking.

Rubber Ducking is a term coined by Andrew Hunt and David Thomas in their book The Pragmatic Programmer. It refers to a process in which a developer talks through their code out loud line by line in order to uncover a bug. Much like therapy, speaking aloud to someone — or in this case, something — can help you discover issues that were unapparent while trapped in your own head.

Here’s why it works so well:
Taking a step back — In order to explain something to an outsider, you have to take a step back and structure your understanding in more depth than if you go over it internally. You also have to properly identify your questions and clearly state them aloud.

Silent encouragement — In the case that you have access to a a live person, their silence allows your thoughts to continue uninterrupted and signs of encouragement, such as nodding, is helpful in moving the thinking process along.

Arriving at a conclusion — Having a silent listener, whether human or inanimate, allows you to arrive at solutions yourself, which helps with memory retention.

Although it is ideal to grab a live person to act as your Rubber Duck, sometimes it is not always possible. Some programmers keep an actual duck or toy on their desk, while resources such as Rubber Duck Debugging and Duckie are useful on a whim.

Rubber Ducking may be a programming term, but it is a technique widely applicable. So, if you’re stuck, in website code — in a line of poetry, or in life — grab a buddy and talk it out.
Mira Brody:

About Mira Brody

Mira Brody is an editor, writer, and marketing expert with 12+ years of experience. She has worked as a local news reporter, a writer/editor, and as a leader in large-scale branding strategy. Mira worked at JTech as the staff writer and editor for internal and client projects from March 2015 to December 2019.

Monthly inbox insights.

Our articles are published for free on our blog.
First Name
Last Name
Email Address