Going into a physical office with a professional middle manager.
I mean, assuming I find a place where I'm a good fit (meaning, my technical abilities make it worth the time of the middle manager to manage me) it works really well, because the job of the middle manager is, essentially, to make people like me work; Because I honestly want to be useful, I think that often said middle managers feel good about the whole thing, too, because I really do get more done under their guidance. They feel useful, I feel useful, etc...
The other thing is that I go through periods of strong productivity and of very weak productivity. This is... acceptable in industry. Ok, so you have some unemployed time, but that's okay because when you are really productive, the remuneration is pretty great.
Also, on the ADHD side? for me? this is after getting the medication. It helps... a lot. but I still benefit more from having a middle manager than most people do, I think.
Append: more on medicalizing your shit:
We live in an age where we spend a huge amount of our GDP on medical care. We have amazing solutions for a lot of problems. Take advantage of this, because when medical science has a good solution, it's often super easy and effective.
Sleep apnea, for instance, is easy to test for and easy to treat, and if it goes untreated? Really fucks up your attention span (and your cardiovascular system) It's one of those things where modern medical science has a quick, cheap and easy mechanical fix.
There's a bunch of other crap like that, too. I personally would go for the sleep apnea test before I messed around too much with medications; not that medications are bad, but if you have it, treating sleep apnea is an unalloyed good, (well, getting mask fit setup is... difficult, but that's mostly a matter of buying the masks and trying them; a small matter of money on a software dev salary) while most medications have pluses and minuses that need to be carefully weighed, even once you've found the one that is best for you.