Rubber Duck Debugging

Rubber duck debugging, rubber ducking, and the rubber duckie test, are informal terms used in software engineering to refer to a method of debugging code. The name is a reference to a story in the book The Pragmatic Programmer in which a programmer would carry around a rubber duck, and debug his code by forcing himself to explain it, line-by-line, to the duck.

Many programmers have had the experience of explaining a programming problem to someone else, possibly even to someone who knows nothing about programming, and then hitting upon the solution in the process of explaining the problem. In describing what the code is supposed to do and observing what it actually does, any incongruity between these two becomes apparent. By using an inanimate object, such as a rubber duck, the programmer can try to accomplish this without having to involve another person.

This concept is also known as "Talk to the Bear".


Read more about Rubber Duck Debugging:  Similar Terms, See Also

Famous quotes containing the words rubber and/or duck:

    Time for the flat-headed man. I recognize that listener,
    Him with the platitudes and rubber doughnuts,
    Melting at the knees, a varicose horror.
    Hello, hello. My nerves knew you, dear boy.
    Have you come to unhinge my shadow?
    Theodore Roethke (1908–1963)

    She shall get a duke, my dear,
    As duck do get a drake;
    And she shall have a young prince,
    For her own fair sake.
    Unknown. Green Grass (l. 9–12)