How to regain my focus and avoid this trap?
Ask HN: I lost my ability to focus for hours on coding. How to regain?
1–10 of 127 posts
Re: Ask HN: I lost my ability to focus for hours on coding. How to regain?
#2It's old knowledge but : "A Healthy mind needs a healthy body" stays true.
Re: Ask HN: I lost my ability to focus for hours on coding. How to regain?
#3Re: Ask HN: I lost my ability to focus for hours on coding. How to regain?
#4Social media and Youtube may be stealing your attention because you simply enjoy them more. If coding was more enjoyable, you'd be doing more coding at the expense of those distractions.
But maybe you just don't enjoy coding your current project. A lot of projects are not intellectually or morally stimulating, and it's hard to stay excited about them, particularly if your work culture is the least bit toxic.
Being a manager means dealing with people, and a lot of experienced coders actually get more out of that than out of JIRA-code-Git-repeat.
Re: Ask HN: I lost my ability to focus for hours on coding. How to regain?
#5Some people will claim that is a crutch. Thats a great analogy because crutches help you get things done while you heal.
Re: Ask HN: I lost my ability to focus for hours on coding. How to regain?
#6Re: Ask HN: I lost my ability to focus for hours on coding. How to regain?
#7 echo "127.0.0.1 facebook.com twitter.com ycombinator.com youtube.com" >> /etc/hostsRe: Ask HN: I lost my ability to focus for hours on coding. How to regain?
#8There's an occasional crunch where I have to heads down get something done, but in that case there is actual motivation to be heads down and get things done.
I find a due date way more motivating than a mere thought of "I should be working...".
Overall, if I'm not already focused in, it's because it's something not as important as other things in my life.
Re: Ask HN: I lost my ability to focus for hours on coding. How to regain?
#9echo "127.0.0.1 facebook.com twitter.com ycombinator.com youtube.com" >> /etc/hosts
Re: Ask HN: I lost my ability to focus for hours on coding. How to regain?
#10echo "127.0.0.1 facebook.com twitter.com ycombinator.com youtube.com" >> /etc/hosts
echo 127.0.0.1 facebook.com twitter.com ycombinator.com youtube.com>>"%WINDIR%\System32\drivers\etc\hosts"