Programming is deep work and requires concentration, we all know that.
However, there are some days that I can help but interrupt myself by browsing Twitter or Hacker News when I'm stuck with a task. Which only makes things worse.
How do you deal with that? I can see that being laser-focused would make me much more productive but I have been having trouble reaching that kind of concentration.