Live data from Hacker News

Ask HN: I lost my ability to focus for hours on coding. How to regain?

news.ycombinator.com

61–70 of 127 posts

Re: Ask HN: I lost my ability to focus for hours on coding. How to regain?

#61
post #14

This is a common problem. The book Deep Work goes into it in detail, and has some research-based techniques to fix it. Basically it boils down to removing distractions, and determination, gradually building up your brain's ability to focus again. https://www.amazon.com/dp/B00X47ZVXM

Have you been able to put any of these techniques into practice? It's been a few years since I tried reading it, but I wasn't able to push through the fluff to make it to the practical advice.

Re: Ask HN: I lost my ability to focus for hours on coding. How to regain?

#64
post #22

Watch more porn, or get laid more. I 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…

Realize that promiscuity is a disease vector.

The OP was crude and perhaps hinging on taboo, but there are well established schools of psychology on the topic, namely Freud's psychoanalytic theories come to mind.

Re: Ask HN: I lost my ability to focus for hours on coding. How to regain?

#65
post #22

Earlier quoted context omitted.

Realize that promiscuity is a disease vector.

The OP was crude and perhaps hinging on taboo, but there are well established schools of psychology on the topic, namely Freud's psychoanalytic theories come to mind.

Getting laid is crude now? Man, I thought it was 2019, not 1950. Excuse my crude language.

Re: Ask HN: I lost my ability to focus for hours on coding. How to regain?

#66
post #22

Watch more porn, or get laid more. I 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…

Realize that promiscuity is a disease vector.

Do you mean mental disease, or physical disease? It is a well researched understanding that sex is very important for both mental and physical health, and with the massive amount of money spent on sex education, I'd hope it's clear how to avoid physical disease. And I never mentioned promiscuous behavior. It's quite possible to have sex, with have sex with many different people.

Re: Ask HN: I lost my ability to focus for hours on coding. How to regain?

#67
For me, I find this is more about fear/dread. I don't procrastinate on social media when I'm doing something well.

You'll have to find a way past that fear. You can:

1. Be braver - admit you're afraid and do it anyway.

2. Find the root cause of fear. Maybe you've dealt with too many death marches. Maybe you don't feel like you can meet your expectations. Just admitting it can make it go away.

3. Plan it out in a way that nobody can screw it up, not even you.

Re: Ask HN: I lost my ability to focus for hours on coding. How to regain?

#68

Earlier quoted context omitted.

If I try eliminating distractions, I just end up daydreaming. I spend most days at work just reading the same shit over and over with nothing sticking. I manage to get work done in rare bursts after exhausting my brain with distractions. Fwiw, I'm in my mid 40s and have less than a year of treating my sleep apnea. I'm pretty sure I've had ADHD my whole life but blamed other things until recently. I'm trying to resist…

Don't medicate but challenge yourself. Learn a new editor while doing your job. Try using Windows instead of using a Mac. Try typing only left handed. There are varioud challenges to overcome boring assignments. Also try a standing desk so if you skive then you must stand up for fifth teen mins.

the worst advice ever.

If you have medical issues - take care of medical issues in the best way possible.

Challenging yourself = denying yourself treatment.

Challenging yourself is not a treatment for something like sleep apnea.

Re: Ask HN: I lost my ability to focus for hours on coding. How to regain?

#69

Earlier quoted context omitted.

If I try eliminating distractions, I just end up daydreaming. I spend most days at work just reading the same shit over and over with nothing sticking. I manage to get work done in rare bursts after exhausting my brain with distractions. Fwiw, I'm in my mid 40s and have less than a year of treating my sleep apnea. I'm pretty sure I've had ADHD my whole life but blamed other things until recently. I'm trying to resist…

Holy shit, same boat, same age, on CPAP for about a year now, can't remember what was said in the meeting I was just in this morning. And browsing HN while I should be writing tests ;)

Your apnea could be undertreated, or it could be a symptom of a bigger problem. Epiglottic collapse is not uncommon in apnea patinets (10-15% of cases), and is not treatable by positive pressure, as it is an inspiratory valve.

CPAP only works on the expiratory valve - which is your soft palate.

If you are having a large number of arousals, despite optimal CPAP pressure, and your respiratory waveform is jagged in certain ways (hard to describe in text) - you are very likely having epiglottic collapses.

However, epiglottic collapse can only be definitively diagnosed by sleep endoscopy.

Epiglottic collapse can only be treated surgicially.

Post reply on HN