The Secret Power of Talking to Ducks
Software engineers often solve complex coding bugs by explaining their work to an inanimate rubber duck. This technique forces the programmer to slow down and articulate their logic, which frequently exposes hidden errors.
When we code, our brains often skip over tiny mistakes because we assume the logic is correct. By describing the code line by line to an object that cannot respond, you are forced to process the sequence more deliberately. This shift in perspective helps you spot gaps in your reasoning that were invisible just moments before. It is a surprisingly effective way to clear a mental block without even needing a human partner.
Source: Rubber duck debugging