Debugging technique: Rubber duck debugging
Have you ever been stuck on a bug, started explaining it to someone else, and during your explanation the solution just came to you?
This is known as rubber duck debugging because that other person could have been an inanimate object. Like a rubber duck.
Something changes when we explain a problem to someone else. We think about it differently. Often this is enough for a breakthrough.
At some workplaces, you’ll see programmers with a rubber duck on their desk. Now you know it may be for more than decoration!