rubber duck debugging
loreprogramming
Debugging by explaining your code, line by line, to an inanimate object.
Popularized by "The Pragmatic Programmer", the trick works because articulating the problem out loud forces you to make your assumptions explicit, and the wrong one usually surfaces mid-sentence. The duck is optional; the explaining is the point.
Also known as: rubber ducking, rubberduck, rubber-duck
Sources
- "The Pragmatic Programmer", Hunt & Thomas, 1999