TLDR; Leverage the strengths of ADHD to learn how to code. Dive very deep on a specific language and framework and become an expert...repeat a few times and get away from coding. Day to day development isn't a strong area for those with ADHD.
One advantage that ADHD brings is a concept called Hyper Focus. See the misunderstanding of ADHD is that those diagnosed with it can't pay attention. That is false. It's just that we can't pay attention to things that don't interest us. If we find something that interests us, we zero in on it like a laser.
For me I discovered computers and Classical Culture (Greek/Roman history, mythology, languages) when I was young and fell in love with both. If you could imagine seeing me typing hundreds of lines of code from the back of Compute! magazine and being told as you watch me focused on this task for hours on end that I have ADD, you would think someone misdiagnosed me. Or watch me tear through the first 10 chapters of Wheelock's Latin before the first day of school. That is both the gift and the curse of our condition. If we genuinely love something, it's hard to pull us away from it. If something doesn't interest us, it's like pulling a stubborn mule up a mountain to get us to do it.
I found a few books that helped me take control of my condition. They may be able to help you as well. The first is Delivered from Distraction It provides some tips on how to capitalize on the strengths of ADD and mitigate the weaknesses. The Gift of Adult ADD provides some of the same guidelines but also casts ADD in a different light. What some people call inattentiveness is really us processing concepts in a conversation and integrating them very rapidly, resulting in "quantum leaps" that a lot of people find difficult to make. I've been frequently called "non-sequitur man" because I'll disengage from a conversation at times following my own train of thought and jump back in when I hit a "eureka" as if everyone else has been privy to my stream of consciousness.
One thing I've found working in the industry with my condition is that I'm great at higher level concepts and training others on what I've learned, not so great at the minutiae of development. In a pair programming setting though, I've found that the productivity multiplies above and beyond what either me or the other person could have produced in the same amount of time. So I've positioned myself as a strategist or team lead rather than a day to day coder.
Of course that was after 10 years of biting the bullet and getting good enough to be very knowledgeable at what I do. The downside to this is that employers/clients see my knowledge and figure, oh he's gotta be a great coder with what he knows. I explain very clearly that they don't want me as a pure coder because I'd be very ineffective at it. No matter how hard I try, I've found that once I've figured out HOW to do something actually doing it isn't as interesting to me.
On the other hand, explaining to others how to do it and letting them run with it has been one of my strongest abilities. For instance just this past week, I worked with a colleague who was new to WPF and showed him the ins and outs of the platform, how to use custom Panels and Data Templates and binding to do the heavy lifting for him. The result, he was able to complete his task in half the time scheduled for him and the client loves the results.
I think the results may differ for each individual, but I've found that most with ADHD prefer the abstract to the concrete.