What Does Rubber Duck Debugging Mean?

In IT, the slang term “rubber duck debugging” has been created to describe an often effective yet simple strategy for debugging code. In rubber duck debugging, the programmer sits a small rubber duck (or other inanimate object) near them on a desk or near a computer, and explains the code to the duck line by line.

Techopedia Explains Rubber Duck Debugging

The idea behind rubber duck debugging is simple – by explaining the process out loud, the programmer is able to better understand the nature of the code, the purpose of individual lines or modules, and what code is intended to do, in contrast to what it actually does. This idea is similar to the idea of proofreaders reading text aloud in order to catch errors, or mathematicians explaining an equation step by step in order to understand how the process works.