This rubber duck can debug your code
It's 3:00 a.m. Your code is broken. You have no idea where your kids are. And
you're starting to wonder if building your own operating system kernel from
scratch was a bad idea.
When this happens, it's time to whip out your rubber duck. What you do is teach your imaginary friend how your code works line by line. The duck is a great listener who won't judge and criticize you.
Normal people will think you're crazy (which you are) but verbalizing your thought process out loud is a weirdly effective way to trigger a higher level of cognitive functioning.
Even Senica knew this 2,000 years ago, who said: 'while we teach, we
learn'. Magically, that missing semicolon on line 6,233 becomes glaringly obvious.
Not only does rubber duck debugging make you more productive but it's also a great way to prepare for all your upcoming technical interview failures.
#coding #programming #debugging #code #softwareengineering
🎨 My Editor Settings
- Atom One Dark
- vscode-icons
- Fira Code Font