Menu Home

Rubber duck debugging

You’re writing a computer programme, and you need to debug it. Why not use a rubber duck?

No, it’s not a software tool or odd phrase – it’s a literal rubber duck. This process follows from the maxim that you only understand something when you must explain it to others. Rubber duck debugging requires a coder to explain each line of their programme to a rubber duck or other inanimate object. In doing so, erroneous assumptions and mismatches between intention and action are laid bare.

The concept was originally described in the book The Pragmatic Programmer: From Journeyman to Master. As with so many coding in-jokes, it has flourished on the web.

Categories: Sciences Technology

The Generalist

I live in Auckland, New Zealand, and am curious about most things.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: