Idioms & SlangBeginner
Rubber duck debugging
PronunciationRUB-er DUK dee-BUG-ing
Definition
Explaining your code line by line to a rubber duck (or anyone), which often helps you find the bug yourself.
Where you hear it
Developer culture and pair programming.
Examples
I explained the bug to my rubber duck and found the problem.
Try rubber duck debugging before you ask for help.
Common mistake
Skipping it because it sounds silly. Saying the problem out loud forces you to think clearly.