We've all been there: waiting for brew, waiting for a CI pipeline, running the full integration suite, xcode doing anything at all.<p>What's your useful advice for staying "on task" when your dev cycle is peppered with 15-120 second interruptions?<p>Of course where possible we should pour effort into minimizing these interruptions but for this question I'm talking mental tricks etc.
<i>Don't</i> surf the net. Don't read HN. Don't fire up a game. Those things are going to make you switch mental context twice (once each way). Instead, close your eyes and take a few deep breaths.<p>(Says the guy who, instead, sees what's new on HN...)
You need better programming language ?<p>Per my experience, choosing a "productive language" matters.<p>For example, working with Javascript/Typescript is not productive, because it's easy for me to lose focus on other things.