what is rubber duck debugging

What is rubber duck debugging

There’s a thing called “rubber duck debugging” in which the developer explains his faulty script to a rubber duck in hopes of finding what’s going wrong

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 inanim

Read more