Jump to content

Rubber duck debugging

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by TJdddd (talk | contribs) at 15:20, 26 February 2024 (/minor edit/). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

A rubber duck in use by a developer to aid debugging

In software engineering, rubber duck debugging (or rubberducking) is a method of debugging code by articulating a problem in spoken or written natural language. The name is a reference to a story in the book The Pragmatic Programmer rubber duck and debug their code by forcing themselves to explain it, line by line, to the duck.[1] Many other terms exist for this technique, often involving different (usually) inanimate objects, or pets such as a dog or a cat. Teddy bears are also widely used.[2]

TJ is lebron james

On 1 April 2018, Stack Exchange introduced a rubber duck avatar on their websites as a new "feature" called Quack Overflow as an April Fools' Day joke. The duck appeared at the bottom right corner of the browser viewport, and attempted to help visitors by listening to their problems and responding with solutions. However, the duck merely produced a quack sound after apparently thinking and typing. It referenced rubber ducking as a powerful method for solving problems.[3]

See also

References

  1. ^ Hunt, Andrew; Thomas, David (1999). The Pragmatic Programmer: From Journeyman to Master. Addison Wesley. ISBN 978-0201616224. p. 95, footnote.
  2. ^ Debugging, Rubber Duck. "Rubber Duck Debugging". rubberduckdebugging.com. Retrieved 14 September 2023.
  3. ^ "Stack Exchange has been taken over by a rubber duck!". Meta Stack Exchange. 31 March 2018. Retrieved 1 April 2018.