Recovering from an Interruption: Getting Back to Code Quickly
The Interruption Hangover (It's a Real Thing)
You're deep in it. The code is flowing, your mind is in the zone. Then, ping. A Slack message. A kid asking a question. A delivery at the door. And just like that, it's gone. The delicate architecture you were holding in your head collapses. Welcome to the interruption hangover—that fuzzy, frustrating feeling where your brain feels like a browser with 47 tabs open, all playing different songs. It’s not just annoying; it costs you hours of mental reloading time.
The Two-Minute Screwdriver Rule
Here’s the thing. Don't trust your post-interruption brain. It's a liar. Your first instinct is to dive back in where you left off. Bad move. Instead, grab a notepad—actual paper—and spend exactly two minutes writing down the next tiny, concrete step. Not "fix the bug." More like "check what `user.id` returns in the `validate` function." This isn't a to-do list. It's a screwdriver left on the workbench so you know exactly what tool to pick up. It forces your scrambled thoughts into a single, actionable thread.
Close The Damn Tabs (All Of Them)
Your browser is a crime scene. Fourteen Stack Overflow tabs, three API docs, Twitter, and that article you "just need to check." Before you even attempt to re-engage, close everything. I mean everything not directly related to the one task defined by your screwdriver note. This isn't about willpower; it's about environmental design. A chaotic digital workspace screams for your fractured attention. A clean one whispers, "Oh, you're working on *this*." It’s a physical reset for your virtual mind.
Stop Starting, Start Resuming
We glorify "getting started." But for deep work, the real skill is "resuming." Build a stupid-simple ritual. Mine is: read the notepad note, close all tabs, run the one relevant unit test. The test fails (it always does). Good. Now I'm not starting a journey; I'm fixing a single, known, broken thing. It's a tiny win that builds momentum. The goal isn't to solve the whole problem. It's to get the wheels turning again. One green passing test is a gateway drug back to flow.
Your IDE is Your Co-pilot
Actually, use your tools. Leave a blatant `// TODO: PICK UP HERE - fix the parameter order` comment right in the code. Bookmark the single documentation page. Stage your changes so `git diff` shows you exactly what you were tweaking. This isn't cheating. It's treating your future, interrupted self with kindness. You are not the same person you were 10 minutes ago before that text message. Help that poor, confused soul out.
Forgive the Stutter, Build the Muscle
You will get interrupted again. Tomorrow. In an hour. The goal isn't an untouched, perfect day of zen coding. That's a fantasy. The goal is to shrink the recovery window. To make the stutter last two minutes instead of twenty. Every time you use the notepad, close the tabs, and run that one test, you're not just recovering. You're training the mental muscle. It gets faster. Less painful. You stop raging against the break and start mastering the comeback.