Some bugs do not break at the desk. I can stare at a screen for an hour, add logs, rerun the same test, and feel more stuck with every pass. Then I stand up, put on my jacket, go outside, and the answer shows up before I reach the end of the street.
It happens so often that I stopped calling it luck.
What actually happens out there
When I am stuck, I am usually stuck in one frame. I have decided what the problem is, and I keep looking at the same three lines through that decision. More focus does not help. Focus is the thing holding me in place.
A walk breaks the frame. My eyes have something else to do. My legs set a slow rhythm. My brain gets bored enough to wander back to the problem from a different side.
Then a small, dumb question appears. Did I check the input? Is this even the right function? Why am I fixing this instead of deleting it? Those questions are never there when I am pushing harder at the keyboard.
The rules I keep
I do not have a system. I have a few loose rules.
**No phone in my hand.** If I read messages on the way, it is not a walk. It is the same screen, just smaller.
**One question only.** I leave with the problem stated in one sentence. If I cannot say it in one sentence, that is already useful information.
**No pressure to solve it.** Sometimes I come back with nothing. That is fine. The walk still did its job, because I come back less tense, and a calm head reads code better.
**Short is enough.** Twenty minutes is plenty. This is not exercise. It is a reset.
Why a city helps
Walking around Kyiv has its own kind of noise. Trams, courtyards, people with dogs, someone carrying a very large plant. None of it needs my attention, but all of it keeps my mind lightly busy. That seems to be the right amount. A silent room makes me think harder. A busy street makes me think looser.
I used to feel a little guilty leaving the desk in the middle of a hard task. It looked like avoiding the work. Now I think it is closer to the opposite. Avoiding the work is opening another tab. Walking away with the problem in my pocket is still working on it, just with a different tool.
Coming back is part of the method
The walk is only half of it. The other half is what I do in the first two minutes after I sit down again. I do not open the editor and start typing. I write the idea down in plain words, one line, before I touch any code. If the idea survives being written down, I try it. If it sounds silly on paper, I drop it and I have lost nothing.
This also protects me from a trap. A fresh idea feels brilliant for about thirty seconds. Writing it down gives it time to cool, and then I can see if it is actually good or just new.
Why this matters more with AI tools
Working with coding agents makes this even more true. An agent can generate a lot of code very fast, and when it goes wrong, it goes wrong confidently. If I am stuck and I keep prompting, I just produce more of the same wrong thing, only faster.
A walk makes me stop prompting and start thinking. Half the time I come back and realise the prompt was the problem. I asked for the wrong thing, or I never said what done looks like. The fix is one clearer sentence, not another round of retries. The agent is quick, but it cannot take the walk for me.
It works for more than bugs
Same thing with writing, product decisions and half-formed ideas. Anything that feels tangled gets a bit simpler when I move. I have started to notice that my worst decisions happen when I am sitting still and tired, and my better ones happen when I am just walking and not trying too hard.
So these days, when something refuses to work, I do the least impressive thing I can think of. I close the laptop lid halfway and go outside.
Anyway. That is how most of my bugs get fixed now. Not at the desk.


