I'm not saying it's not ADHD, I'm saying it's a risky thing to imply it.
Paradoxical standard
So you're saying that everyone who feels like this who goes to a medical professional, 100% of the people, will get told they have ADHD?
The trick is to learn how to use these personality traits to succeed, not to use a chemical cosh to beat yourself into being just like everybody else.
I find the knee-jerk suggestion of medication offensive tbh. The trick is to learn how to use your tumors to succeed.
An example is "implement XYZ paper" -> when you get off track, think about the algorithm running on your computer, how much faster it would be than the previous one, etc.
I think finding a real passion to go after can help stay focused, but I've started my app over life 4 times, modeling bits off many open source GitHub repos. im finally close to launching something.
Maybe I should drop you an email
The best way to deal with it IMHO is to have a long term goal - and a reason why you want to achieve it. The reason should be chosen so that it motivates you to continue with the project. If you cannot think of a good one that will meet that requirement, then consider switching to a project that you can think of a good reason to keep you motivated. Set targets and then break it down into small tasks that are easy to track and achieve (the same as you probably do professionally). Ideally this task list should be somewhere visible, to remind you of it - along with your long term goal/reason.