Ask HN: I lost my ability to focus for hours on coding. How to regain?
11–20 of 127 posts
Re: Ask HN: I lost my ability to focus for hours on coding. How to regain?
#12I was having focus issues, because coding is fascinating but not inherently sexy to me. After working on a problem for a while, the enjoyment of the problem would become overshadowed by my sex drive, and I would start to find anything else more interesting. Ended up being my body's way of reminding me that I should make some babies before I died, so I was subconsciously distracting myself away from anything fascinating that wasn't the opposite sex.
Re: Ask HN: I lost my ability to focus for hours on coding. How to regain?
#13This may sound stupid or trite, but have you considered moving into a management position? Social 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…
Re: Ask HN: I lost my ability to focus for hours on coding. How to regain?
#14Re: Ask HN: I lost my ability to focus for hours on coding. How to regain?
#15Re: Ask HN: I lost my ability to focus for hours on coding. How to regain?
#16Use tools such as SelfControl.app, ColdTurkey.app, and Freedom to block websites. Some people will claim that is a crutch. Thats a great analogy because crutches help you get things done while you heal.
On Windows, I add websites to the hosts file as others have suggested: HN and Google News are the main ones, I gave up FB long ago.
Doing this still doesn't get you back on track coding / focusing, but it helps. The idea is to break your habit of visiting distracting sites - where these apps help - but also build a habit of work. The more you make it a habit, the easier it becomes over time.
Re: Ask HN: I lost my ability to focus for hours on coding. How to regain?
#17It's kind of like chat roulette (before it got weird) for study buddies. I'll admit the premise is a bit odd butt don't knock it until you've tried it. Essentially, you're paired with a random partner for a 50 minute mostly-silent video chat. You spend the first minute or two saying a quick hello and each definitively stating what you're going to accomplish in the hour and then you get to work (separately - they're very clear it's not for collaboration). When time is up you both report back on whether you did what you set out to do. And while you get to work the corner of your screen has a little live stream of your partner diligently working.
Not only does it help keep me "accountable" and working pretty efficiently for the full 50 minutes but it's also made me so much better/more realistic about estimating what can be accomplished in that time.
Re: Ask HN: I lost my ability to focus for hours on coding. How to regain?
#18Re: Ask HN: I lost my ability to focus for hours on coding. How to regain?
#19In my case, that's a chatty coworker. Every time he yanks me out of my flow, I get the urge to check social networks and have a really hard time going back to deep work.