What's your useful advice for staying "on task" when your dev cycle is peppered with 15-120 second interruptions?
Of course where possible we should pour effort into minimizing these interruptions but for this question I'm talking mental tricks etc.
(Says the guy who, instead, sees what's new on HN...)
Per my experience, choosing a "productive language" matters.
For example, working with Javascript/Typescript is not productive, because it's easy for me to lose focus on other things.