Live data from Hacker News

Ask HN: How do you focus on work for long periods of time?

news.ycombinator.com

81–90 of 148 posts

Re: Ask HN: How do you focus on work for long periods of time?

#81
Assuming you're a programmer working on software, the best way I've found to keep focus is to set up your development environment such that a) it's full screen on a big monitor without any other apps or notifications and b) the feedback loops are as tight and automated as they can be - as soon as you hit save, automatically run the tests associated with that portion of the code. This has the effect of "gamifying" the software development process - every change is filled with the anticipation of how the test will respond. I haven't measured such things but other commenters mention dopamine and I suspect that a tighter development feedback loops produce more of it, allowing you to keep focus.

More generally, I've found that blocking off calendar time for "deep work" is effective if you commit to a plan for each time block. Before starting, I define what I'm trying to do and what the outcome would look like if successful. The first step is always to write a test that measures success in that context - it does not have to be a unit test or even something that you commit, can just be a simple curl command or bash script or a "I hit refresh in my browser and I see the image". Then I iterate until the test passes or time is up (generally because there are bigger issues)

And finally don't be afraid to engage in social media or games or other distractions - but do it in a mindful way. I use time in between deep work sessions to chat with friends, browse HN, write long rambling comments on HN, etc. You have to allow yourself idle time but keep it well and truly separated from deep work.

Re: Ask HN: How do you focus on work for long periods of time?

#82
post #5

> my problem is concretely that anytime I work on something, I can't work on it for long amounts of time If this is always true, even when you're working on something that interests you, maybe consider getting that ADHD diagnosis? If it's just something you struggle with occasionally or when you're slogging through boring tasks that's something you should be able to improve. It really depends on the type of work you'…

An indication that it might be ADHD is if you struggle to focus on the things you genuinely want to be focusing on. Not like “I should be studying” but like “I want to play this new game I bought.”

Re: Ask HN: How do you focus on work for long periods of time?

#83
Know yourself very well.

I shorten my deadlines.

I delay everything, always and I know that working under pressure I'm the best of me (yes, maybe is shortening my life expectations..). At the other side I know that working with me is giving maybe 120% of you, so I set my deadlines earlier for me.

Then I do the shit because that deadline I set is my deadline and I'm very proud guy that wants to do the shit on time.

Then when the thing is done I have maybe 2 to 3 days to review and relax.

But the best recommendation is: to know yourself.

Sometimes your mind (and body) needs to run away some minutes.

I'm a former teacher also and I know that you can't focus too long on something that you don't want and doing that is bad for you and bad for the stuff you are doing.

You needs something that makes you want to focus, for me is the pressure of deadlines.

I need to talk with my psychologist..

Re: Ask HN: How do you focus on work for long periods of time?

#84
I have been diagnosed with ADHD but don’t like to take meds. If I’m feeling this way I put on movies or a TV show. I got through college watching season after season of TV shows in the computer lab while I did my work. Music or podcasts help too. But generally I like programming and it doesn’t take much for me to sit there for hours doing it. Another tip try not eating anything. I get laser focused when I’m borderline starving and working on a hard problem.

Re: Ask HN: How do you focus on work for long periods of time?

#85
post #82
post #5

> my problem is concretely that anytime I work on something, I can't work on it for long amounts of time If this is always true, even when you're working on something that interests you, maybe consider getting that ADHD diagnosis? If it's just something you struggle with occasionally or when you're slogging through boring tasks that's something you should be able to improve. It really depends on the type of work you'…

An indication that it might be ADHD is if you struggle to focus on the things you genuinely want to be focusing on. Not like “I should be studying” but like “I want to play this new game I bought.”

Really? I don't think ADHD is a thing in Europe; I know plenty of people (including) myself that would struggle to focus on things their genuinely want to be focusing on. I myself bought a videogame last week... and I haven't yet played it. I don't think I have ADHD, I mean, I think this kind of stuff is normal to some extent. If I have to "wash the dishes" I will. I have to work, I'll work. Sometimes, though, I won't wash the dishes because I just don't feel like it. Sometimes I'll procrastinate at work, but I'll catch up eventually. I think it's just life, some times you struggle with stuff, but that's alright.

Re: Ask HN: How do you focus on work for long periods of time?

#86

When I used amphetamine salts I had a few rules for myself: Don't overdose, keep to low, clincally useful doses. Don't drink coffee and take amphetamine at the same time - too much stimulation, plus I don't eat breakfast. Try to eat and sleep, it's very important for your brain functioning. Stay disciplined, if you find yourself distracted try to calm down. A lower dose often helps me focus. I couldn't do work on mor…

> Amphetamines worked well for a while but they started having all kinds of messed up side effects so I quit them and I'm glad I did.

So, why on earth would you recommend them (or even bring the topic) here? I don't get it.

Re: Ask HN: How do you focus on work for long periods of time?

#87

Practice long periods of not having stimulating activities around you. Just sit and be bored for a few hours at the end of the day. This will increase your baseline dopamine for normal activities. When your baseline is too low, you self medicate by going on Reddit which spikes your dopamine for a while. Taking a break from stimulation lets your brain accumulate dopamine naturally

100%. Another tool available is to generally move to lower-intensity dopamine producers. Long/slow/thoughtful videos over short/fast/bitesized videos, books over videos, old/clunky/slow games over new/polished/fast games, board games over computer games, and so on.

Re: Ask HN: How do you focus on work for long periods of time?

#88
https://www.di.fm/progressivepsy I find certain kinds of electronic music entertain my lizard-brain sufficiently that I can think clearly and never get those distracting thoughts, "i wonder how my comment's doing on HN", "Have I checked the news recently"... etc.

I owe my PhD to di.fm, I use premium so I don't get ads and I'm very happy with the result.

Re: Ask HN: How do you focus on work for long periods of time?

#89
post #24
post #15

So far, the solution that has worked for me has been Focusmate ( https://www.focusmate.com/ ). It's like Omegle for focus. Pick a time slot and pair up with someone to be accountable together. You can get more information on how it works here https://www.bbc.com/news/technology-46624137 You can also book a session with me if you like. https://www.focusmate.com/i/nLUDAIR5oh/calendar

I've been curious about these kinds of services for a while. Genuine question: do you not end up just chatting with your paired partner?

It's very bad form (and against the rules) to make chat the focus. You will eventually get reported if you do it a lot. A short chat at the end is fine.

The session template is: brief greeting > outline what you're gonna do > wish the other person well > mute mics and get stuff done for the bulk of the session > end of session chime sounds > share how well you did (and here you can chat for 2-4 mins if both parties are keen)

Re: Ask HN: How do you focus on work for long periods of time?

#90
post #54

Get tested for ADHD, even if you believe you might not have it. I'm in my mid-30s and been somewhat successful at work but my pattern has always been that I could hyperfocus on some projects for days on end and suddenly I would be bored out of my mind and not able to focus for more than 20 minutes at a time. I've blamed and shamed myself for years, thinking I was being lazy, that my work ethic sometimes was poor/lack…

Yet these days they've taken to not treating ADHD anymore. The psych(o) people will pile on to that guilt trip and make you feel like the worst person, while telling you that you should just quit your job and end your career.

People need to understand that if you have ADHD your psych, doctor, and therapist are your worst enemies. They basically operate as secret agents for the insurance companies in order to gather information to permanently remove your health care (not just mental health care, but it crosses over into traditional medicine).

Psychs and doctors are responsible for carrying out the genocidal orders of powerful elite. Just like Police officers they are shady low-lifes, with fragile egos; the fruit of their labor is almost entirely death and destruction... tread carefully.

I'm really sick of these warnings getting shot down and censored. Since covid, doctors/nurses have been untouchable with at least 40-70% of the public. This is something that effects millions (100,000s?) of Americans, but talking about it gets you branded as a dangerous crazy person... but I get how it sounds.

Post reply on HN