I think the actual benefit of ADHD and programming is perseveration. Meaning we struggle to pull away from a task when it’s time. Like putting down the video game and going to school.
What happens with programming is getting stuck on fixing a bug. Not being able to put the controller down until you figure out where the missing comma is and why your code won’t work.
It’s extremely valuable and a lot of people struggle with a bug and give up really easily.
Getting started working on something, or planning out a project on the other hand is the real tough part.