The idea that anyone should be able to sit down and focus for four hours on command is a dangerous myth. Any brain requires glucose to keep your brain going and breaks to keep you engaged. ADHD brains add an extra hurdle when you're trying to focus on a schedule. You'll have to keep pivoting in your strategies. What works today may not work tomorrow and might begin to work again a month from now.
Limit/Provide Distractions
I'm hyperactive, so counterintuitively, my ability to focus often relies on fairly loud background noise I've chosen. For coding, it's usually music (and often lofi beats). For me, this blocks out smaller sounds I might want to investigate and provides a back-up focus for when I get bored. I pick noises that can't sustain my focus for long, so I'll naturally gravitate back towards doing the task. It really helps when I'm waiting for the development server to load, for example.
For the less hyperactive, sustaining focus often involves blocking out all distractions. This can be anything from temperature to lighting to clutter to the clothes you're wearing.
I've heard many people describe putting a note on their office door or desk asking others not to distract them during focus time. Phones and computers often have a focus mode that can limit notifications for a set time.
During classes, presentations, and meetings where blasting music would be rude and I desperately want to move, I take notes, try to come up with questions to ask the presenter, draw, and use fidget toys.
Creating a thought dump can be very helpful. We all know the feeling - I have to act on this thing I remembered NOW or I won't remember it 30 seconds from now. If you have a place to write those thoughts down while you're working, you'll know you can come back to it later.
Working with Your Brain
You can use every trick and tip in the book, but ADHD brains love to change the rules for what will work constantly. If you find patterns in your productivity, use them. For example, my best time for getting work done is like 2:00pm to 5:00pm. Sometimes I can get in the groove when I sit down at 9:00am, but if I can't, I focus on tasks that will set me up for success later. I'll do organizational tasks I've been putting off, check and respond to emails and messages, and sometimes time block the rest of the day. This is another area in which developer jobs can suit ADHD brains. They're often pretty lenient about schedule as long as the work is getting done.
Notice things that regularly provide just enough time for you to get distracted. We're developers, so these are opportunities to automate! In a comment on the last blog, @destynova describes automating alerts when his builds and tests finish, @gwenshap recommends streamlining your CI/CD pipeline, and Josh Comeau recommends chaining npm start and npm install.
Often for people with ADHD, acknowledging the desire to pivot between tasks is very helpful. If you can't get started on one task on the list, but kinda want to do another, do that one. As long as you're still moving towards the goal, there's no harm in bribing yourself with 10 minutes of the thing you want to do just to get going on the thing you don't want to do. Working with the way your brain focuses will probably work better than trying to force it to focus like someone else's brain would.
Another counterintuitive tip - rewarding yourself at the beginning works way better for ADHD brains than promising yourself a reward at the end. Literally, eat a square of chocolate (or whatever you can bribe yourself with) and then try the thing.
Finally, celebrate that you did the thing! I don't care if the thing isn't done or it isn't done perfectly, congratulate yourself for trying and putting in effort. Anything you can do to give your brain positive feedback will help combat the shame and negative messaging you've received in the past.
Embrace the Lack of Schedule
ADHD people do not form habits like neurotypicals. There's some variation in how long it takes people to form habits, but it's normally somewhere in the months range. I've been trying to cultivate a morning routine for 30 years and at this point I can reliably wash my face and brush my teeth but putting on moisturizer is still hit or miss.
Everything about planning out our day and making sure things get done is manual. I leave calendar notifications on and write down every event I have to attend on my to do list and still end up being late or missing meetings. I've had success asking my teammates to ping me if I'm RSVPed yes to a meeting, but nowhere to be found. Every time I got a ping, that person got a shout out in retrospective.
I even have to plan breaks or I will find a way to entertain myself (productively or not) with my computer for several hours. Based on how my brain works, my daily goals are be available during my scheduled work hours, make progress on 1 ticket, 2 - 4 personal to do items like watering the plants, an amount of water to drink, and planned meals and breaks. Nothing else is strictly scheduled, because I will ignore alarms and then declare the task failed because I didn't do it "on time."
The biggest gift I gave myself was accepting that tasks often take me longer than they "should." As long as they're getting done, that's something to celebrate!
Rest
It's tempting to expect yourself to be able to accomplish the same amount every day. ADHD brains naturally have an ebb and flow. One day I'll be in a shame spiral about my inability to start a ticket, and the next day I'll get 3 days worth of tickets done. However, that really productive day will take its toll. If I manage to chain really productive days together, I'll often crash and have an equal or larger number of unproductive days.
If I start to feel exhausted, frustrated, or overwhelmed, I have to remind myself to try eating food or taking a 10 minute walk. Often that is enough to get me back on track. If not, I ask myself if I'm trying to multi-task again or re-evaluate my plan for the day and take some items off.
Ultimately, this is another area in which people with ADHD struggle to separate themselves from the constant negative messaging they get about their productivity from society. I'm still trying to internalize that I do not need to be productive to earn rest.
Conclusion
Did I miss a resource or tip you love? Interested in fidget toy reviews? Leave a comment!
Up next:




Latest comments (17)
Interesting, I’m primarly inattentive but I’ve noticed that energetic music (heavy metal, electronic) helps me write code. Even vocals are file — it feels like they are on a different channel from coding.
I feel the same during meetings and online meetings are worse — I end up constantly switching between tabs and apps. This is probably one of the very few things that was somewhat better in the office than when working from home.
Another thing is that going for a walk was also much simpler when I was working in the office (well, anything to avoid actual work!)…
Oh my god , this is it actually... obviously I'm late diagnosed as well.
obviously I've been trying to self improve during the 20year old to 30 year old with building habits... I should've realized way earlier just from brushing teeth and washing my face its a hit or miss.
.
It's funny because those habits building books tell me I should link one new habit to like after brushing my teeth.
.
(hobbyist coder but never built anything significant other than small tools for my non IT related job, but now at age 30 I'm will to dabble with real programming stuff for freelancing)
I like the series, but did you anyhow touched on how (personally for me) I can't seem to stick to one sub field, like i would go from gamedev,reverse engineering,hacking,webdev,mobile app dev etc then cycle all of them whenever I got distracted or I feel some concept is hard.
.
I just know like 10% of each of those field.
I just want to be able to be some what good in a field to do freelancing.
I'm still trying, currently I just want to force my self to learn webdev via building and understanding project. I really hate something like FreeCodeCamp, it doesn't seem to give me to dopamine somehow compared to if i just dive into a project then learn on the way. This is how I'm trying do it right now. and currently using ChatGPT to outline stuff I need to keep track of.
Any tips?
Feel free to explore our tailored ADHD tools for adults at FocusBox.io — they might just be the ally you're looking for in your coding journey. #YouGotThis #FocusBoxSupport #ADHDandCoding
Hello Abbey,
I would like to thank you a lot for making this series.
I was diagnosed with ADHD a couple of weeks ago on a adult age and I felt it really helpful and even healing to read this information from the POV you are reaching it out.
I will definitely share this post with some of my friends that could be really helpful too.
Again thank you very much for writing this! ❤️
Thank you for posting this! It hit home with me 100x!!!
"I'm still trying to internalize that I do not need to be productive to earn rest."
This line definitely shook me. I didn't even realize I legit behave this way until I saw it in writing. Rather than seeing rest as a requirement to function…I've literally become conditioned that it's something I don't deserve because I haven't accomplished what I said I wanted or needed to do. An insane shame spiral manifests which has sometimes left me with little to no rest over the course of several days.
I gotta do better.
Amazing article
I had a mini hearth attack when I saw the title, I was thinking that you couldn't keep going with this series.
It's very encouraging and awesome see someone write about this that to many people couln't seem too much, but it is. Thank you very much!
Abbey, thank you for your advice and tips!
I always shift my focus when working on something because I always believe that I have enough time to complete the task hahah will try to follow your advice.:)
drift-boss.io
First of all this is a great article, being a developer and student I do not study such long things but this article grab my attention from the starting. So this is a article from my side is a great article.
Yes, you are right in the point of putting some background music for being productive from the task you are currently doing. As you said you use music, in my case I do the openings of my favourite TV show which is "The Office".
And yes, it is also true that the each person has its own productivity hours, as being a student, I have two kind of working zones, the first one is in the morning from 09:00 AM - 1:00 PM, which I use for the study purpose. And Late in the night around 10:00 PM - 1:00 AM for the coding or self learning things.
I will agree most of the points of this article as well. Thank you for writing such great and awesome content for helping persons like me and many others.
Some comments may only be visible to logged-in visitors. Sign in to view all comments. Some comments have been hidden by the post's author - find out more