T
17

Shoutout to the person who told me to use a rubber duck for debugging

I spent like 2 hours last week staring at my Python code trying to find a bug in a simple loop. My friend in Chicago said to explain each line out loud to a rubber duck on my desk, and I found the mistake in 5 minutes. Has anyone else tried this method with a different object?
2 comments

Log in to join the discussion

Log In
2 Comments
diana_flores25
Try explaining your code to a stuffed animal. It forces you to slow down and actually say the logic, which catches dumb mistakes. My cat judges me silently but it works.
2
the_keith
the_keith24d ago
My old roommate's houseplant heard me explain a SQL query for 45 minutes last month. I felt crazy but it fixed a join that was giving me wrong results.
0