Debugging is a Miracle
Debugging: because you get to be a hero who saves the world from certain doom, one print statement at a time.
Step 1: Identify the Problem
- Look for that one weird error that's been bugging you for hours.
- Consult the ancient texts (Google search results).
- Ask the intern for help (if you have one).
- Consult the cryptic notes from the previous maintainer.
Step 2: Fix it, but don't ask questions
Avoid asking questions, or risk being sent to the "debugging pit" of despair. Trust your instincts, or at least pretend to.
Step 3: Pretend you're not stuck in an infinite loop.Step 3: Pretend you're not stuck in an infinite loop
Just pretend the infinite loop is a feature, not a bug. Repeat the mantra: "It's not a bug, it's a feature, it's a feature, it's a feature...".
Step 4: Call in the experts (aka, Google)