Hacker News new | ask | show | jobs
by epolanski 428 days ago
For me what has helped is to realize the triggers that make me distracted which is why I emphasized the emotional part.

I tend to distract myself under stress/boredom e.g., when I realize this is happening I get back to working and resist the urge of distracting.

In time, you get better, you need to train it till it starts being more natural.