Rubber duck debugging really works. What's your version of it?
I've lost count of how many times I started typing a question to a colleague, got halfway through explaining the problem, and spotted the bug myself.
Some people talk to an actual rubber duck, some write it out in a notes file, some go for a walk. What's your method for getting unstuck?
Comments · 3
I explain it to my cat. Saying the problem in order forces you to see the step you skipped.
Writing a short bug report to myself helps. The effort of describing what I expected versus what happened usually reveals the answer.
Does it work for non-code problems too? I've tried it with spreadsheets and writing and it seems to help there as well.