Skip to main content

Command Palette

Search for a command to run...

Coding and ADHD - Can't Keep Going

Updated
6 min read
Coding and ADHD - Can't Keep Going
A
Abbey Perini is many things - a metro Atlanta native, person of many hobbies, full-stack web developer, accessibility advocate, international speaker, and technical writer with ✨over 500,000 views.✨ She's full-stack in the truest sense - give her a problem and she'll figure it out. She's happiest problem solving in the front-end, back-end, and all the APIs and microservices in between. Passionate about accessibility, she's worked in Vue, React, and even AngularJS (2013). She's spent her development career rectifying tech debt in existing codebases.

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.

A brain saying "Look at us we're all done!" A dino saying "But we only did one thing" Brain: "Now we can relax and enjoy the afternoon" Dino: "We were supposed to do a lot more." Brain: "Wow I love being productive" Dino, way off in the background: "It's only been 22 minutes!!!" by ADHDinos

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.

time management when you have ADHD a still from the Good Place of Michael saying "Okay shouldn't take long. Between an hour and, um, 11 months"

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.

A venn diagram by Rick Green I wrote it on the calendar. It's in my agenda. I set an alarm. I loaded it into my phone. I told my partner. I put up 4 large post-its. All overlap "What? Today? No Way!"

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.

A bunny getting stressed and trying to get away from messages like "why can't you do this?" "Look at other people!!!!!!" "Why can't you just be like them?" The bunny gets angry, pats away a final speech bubble, and says "because I'm not them"

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:

Comments (14)

Join the discussion
O

My routine;

  • Put on a noise cancelation headset and play a lo-fi playlist
  • Start with a todo list
  • Start time tracker ( in my case a Pomodre app )
    • Integrate your tracker with Apple DND so you won't get distracted
  • Last but not least. Leave your phone behind

Bonus: If these don't work. Take 7-8 deep breaths or do a Guided Wim Hof Method Breathing

C

Also don't forget, speak with a therapist so you can possibly avoid some triggers, and because hearing from a professional will often be the push we need to avoid certain foods (if you have a sensitivity to artificial preservatives or gluten for instance) and to exercise.

Also, medication can really help! Even if you have been prescribed one in the past that didn't work for you, a medical professional can find one that may work better for you! There is no need to suffer if a medication could bridge the gap and help you!

D

I'm about to discuss the possibility of me being diagnosed with ADHD with my provider soon ^ And can I say, this article was the fresh air I've been craving. I am still trying to bust my way into tech, and this article gave me the confidence to keep moving forward. I always felt helpless and not good enough because I tend to lose focus ALOT, etc.! Thank you for your POVs and inner monolog support.

1
A

This was a really well written article Abbey Perini. Not sure if I suffer from ADHD but I can get distracted easily. So i'm using focus apps to stay on task as much as possible.

T

I love it, thank you Abbey!

1
J

I am in a similar situation (I still have undiagnosed ADHD) with two parents in healthcare who still don't believe me that I have always had and still have serious attention issues simply because I more often than not always find a way to do a little more than "get by".

I'm glad people like you continue to remain vocal about the struggles, realizations, and potential solutions for myself and other people who face a similar situation daily.

Throughout my entire life, I've found slow and hard-won understanding by failing many many times when trying to appropriate typical neurotypical approaches (heh) whilst always seeking to continually understand how my internal disposition was different.

Everyday I just try to improve the quality and rate of my "little wins" while hoping to build them into larger and larger successes over time.

I've personally found some of my solutions to be:

  • Body doubling (Discord partner calls)
  • Relying on pre-planned visual/auditory cues to guide me to context-shift through the latter part of my workday (device alarms buzzing in different locations to shift me to differently scheduled blocks of time to do different tasks)
  • Minimizing distractions when appropriate (system DND/Focus Modes used as needed)
  • Changing environments from time to time (coffee shop, library, etc. instead of working at home
  • Creating detailed To-Do lists of goals with time-tracking (Logseq), etc.

The information you laid out was easily identifiable, digestible and a fun read.

Thank you for sharing this quality post. :)

1
A

Thanks for reading! Sorry to hear about your struggle. I love the alarms in different locations and changing environments tips.

C

This is all me. Its so stark! Classic music and good Jazz also helps, all the time.

2
L
Leon4y ago

Thanks for sharing! I find podcasts to help me tune out but somedays it doesn't work out still finding ways.

1
D

I love this series Abbey Perini! I was diagnosed at 30, and this article (and the others in the series) does a great job of explaining what ADHD is and what it isn't.

Keep up the good work!

1
M
Mfon4y ago

Hey Abbey! Thank you for sharing this. I see what you did making it into a series of articles.

1

More from this blog

A

Abbey Perini Codes

85 posts

Passionate about accessibility, Abbey's worked in Vue, React, and even AngularJS (2013). She's happiest problem solving in the front-end, back-end, and all the APIs and microservices in between.