Specifically who would be considered "an appropriate professional"? Just go see my general practice physician, or is there someone more specifically I should go to instead?
It's hard to say. I'd probably ask your general practice physician for a referral to a therapist that specializes in adult ADHD. And I say therapist rather than psychiatrist intentionally: A therapist is usually someone with a PhD in psychology or counseling, and is less likely to take a purely "better living through science" approach than a psychiatrist, who is usually an MD specializing in psychological health, and is more likely to simply prescribe drugs and send you on your way. If you see a therapist, and they recommend medicine (they usually will), they will write up a recommendation to your primary physician to prescribe you that medicine.
Honestly, I tend to use my imagination to concentrate. I mean, really stupid things like imagining that my code is slaying dragons or something, or that I'm actually developing software for an asteroid mining platform. Really, use whatever it takes to make yourself INTERESTED in what you are doing.
Also, avoid Hacker News. ;)