7
This is a real technique! You explain your code, line by line, to a rubber duck (or a statue, or even your cat). By explaining it out loud, you often find the mistake yourself.
It works because it forces you to slow down and think clearly. I've 'duck-debugged' with my colleagues many times—except we used each other as the ducks!
Log in to add a comment.