Lably
Skip to content

Rubber duck debugging

Code debugging method

  • 1 min read
  • 3 chapters

Related on Lably

Through Debugging, Natural language and Computer science

Origin and definition

The name is a reference to an anecdote told in The Pragmatic Programmer by Andy Hunt and Dave Thomas. The book described rubber ducking as the method of explaining a problem to another party who does not "need to say a word; the simple act of explaining, step by step, what the code is supposed to do often causes the problem to leap off the screen and announce itself". The term referred to a research assistant, Greg Pugh, who carried around a rubber duck to which he could address such explanations. Variations of the practice use other objects or even pets; teddy bears are especially common.

Sign in to keep reading

2 more chapters are free with a Lably account.

More in Psychology