Coding and ADHD - ADHD Brains
Tags: programming, mentalhealth, productivity, computerscience
Published: 2022-05-31 22:14:56

To me, my Attention-Deficit / Hyperactivity Disorder (ADHD) and my ability to write code are irrevocably linked. I had suspected I had ADHD for years, but only went through the formal diagnosis process in September 2021. One of the primary reasons I went to get tested was when I was interested in a coding problem, I could lose 6+ hours, often missing meetings and meals.

I have ADHD combined type, which means I have hyperactive and impulsive symptoms as well as inattentive symptoms. Among other things, I struggle with:
- fidgeting/restlessness
- impatience/frustration
- hyperfocus
- rumination
- time blindness
- [Rejection Sensitive Dysphoria](https://www.additudemag.com/rejection-sensitive-dysphoria-and-adhd/#:~:text=Rejection%20sensitive%20dysphoria%20(RSD)%20is,high%20standards%20or%20others'%20expectations.)
- sustaining attention
- poor working memory
- procrastination
- lack of attention to detail

![A comic by Dani Donovan Non-ADHD: a person walking their dogs in a nice row and whistling. The dogs are labelled responsibilities. ADHD: a person tangled in dog leashes, the dogs each up to their own antics](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/agb793wmg144r0079x3q.jpeg)

## ADHD Brains

Many people have said it better, but I feel like I have too much attention. I would love to be able to pay attention to one thing. It would be great for my brain to focus on something just because I or other people think it should be important. In fact, it is physically painful for me to sit still with nothing interesting happening. Rather than "Attention-Deficit," it should be called something like "Attention-Regulation" or "Executive Function" / Hyperactivity Disorder.

Coding can give ADHD brains exactly the kind of [stimulation they crave](https://www.additudemag.com/brain-stimulation-and-adhd-cravings-dependency-and-regulation/). Every brain has reward pathways to reinforce learning - if you hit a button and immediately get a thing you really like, your brain will want to hit the button again. [If the payoff is random](https://theconversation.com/designed-to-deceive-how-gambling-distorts-reality-and-hooks-your-brain-91052), like fixing a bug and trying a bunch of different things before you find the solution, then the reward seems even better to brains.

ADHD brains approach the buttons differently. They struggle with pressing the button if they don't know it'll give them a reward they really like. They have a hard time finding buttons with rewards good enough to make them want to press it again. Once they find a button they like, they often press it way too many times. The current theory is that our learning pathways use up dopamine faster and our brains don't convert glucose to dopamine and serotonin as well as other brains. In other words, we're constantly searching for things that will give us good enough rewards and bad at leaving those things alone once we find them. 

![Graveyard of Abandoned Hobbies by Dani Donovan showing a tombstone for each of 23 hobbies like calligraphy, D&D, guitar, gardening etc.](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/l2cpwu5o9gdybprlqa96.jpeg)

For us, part of the appeal of those rewards is novelty. People with ADHD don't stop to question it when they're interested in something. So they can often achieve great things without realizing they were supposed to be hard, but also usually have many hobbies and projects that were started and then abandoned. 

Luckily for us, not only is coding a creative endeavor that involves constantly learning new things, but also once one problem is solved, there's always a brand new one to try.

## Conclusion

Personally, I would never describe ADHD as a super power. Yes, it's why I could learn coding concepts I'm interested in seemingly overnight. People seem to admire the way my brain wants to be constantly picking up hobbies and diving straight into the deep end of projects. It's also why I cannot attempt an algorithm coding challenge without crying, often try to change too many things at once without testing, and have been typing this blog for 40 minutes instead of eating lunch.

To that point, the rest of this series will be about strategies for dealing with the four main challenges I experience while coding with ADHD:
- [Can't Start](https://dev.to/abbeyperini/coding-and-adhd-cant-start-23l3)
- [Can't Keep Going](https://dev.to/abbeyperini/coding-and-adhd-cant-keep-going-5aj2)
- [Can't Stop](https://dev.to/abbeyperini/coding-and-adhd-cant-stop-10mf)
- [Can't Remember](https://dev.to/abbeyperini/coding-and-adhd-cant-remember-30b4)

Followed by how I feel my ADHD symptoms can be beneficial in a development role:
- [Where We Excel](https://dev.to/abbeyperini/coding-and-adhd-where-we-excel-454j)