Rubber ducking is the technique of talking to an inanimate object (often a rubber duck) through the flow of a piece of code. This practice often ends abrubtly with an exclamation "Oh, I'm so stupid" and frantic tapping at the keyboard while the duck looks on, impassive.
Great! Here's the source.