I agree with the comments made.
I am a real believer in the non-existance of ADHD.
This is normal behaviour. We ALL get distracted (just some easier than others - it's not a freaking DISORDER), one problem is that we have easy access to one of the most distracting things ever created, the Internet. We can get almost anything we want within seconds!
The best thing you can do is get back to baby steps. Create a list of real small tasks, work down the list. The second you realise you are doing something else that is not on the list STOP. If you struggle to get back to what you were doing, move to another task. If the tasks are small enough, it shouldn't create an issue (unless of course there are dependencies).
Dude, ignore the god damn doctor. You have already taken the first step saying "I want to be a programmer and stay focused on my job." Start small, stay on task, if you come off, don't beat yourself up, just get back on to it.
If it gets real bad, take drastic measures, disable websites that you dont need to do your job. (like YouTube, but not MSDN if you are a MS dev).
TBH, there are people in my workplace without "ADHD" that need to take a leaf from your book.
Update Following Comments
There have been several comments made stating something similar to, or along the lines of the following:
- I don't know what I am talking about.
- My aforementioned friend is wrong/unqualified to make such comments.
- I am just simly wrong.
My responses to those would be:
- My friend has the right to say what they like, it's their opinion, much like it is your right to comment arguing against it.
- If you want to start debating against my comments, you have missed the point.
Like I stated, I personally do not think ADD/ADHD exists. However, even if it does, it does not stop us from BEING IN CONTROL OF OUR OWN LIVES.
The original poster has made the first step in becoming a great developer, I know lots of developers, but the ones I hold in high regard all share one thing in common: they are looking to remove their weaknesses.
The original poster is doing this, and certainly get's my respect for that, I simply tried to offer some advice to them. Getting stuck in the trap in accepting "there is not a lot you can do about it, just take your pills" is a fundamental weakness of attitude.
Hats off lamcro, and I wish him the best of luck, and if you ever need any more advice mate, feel free to ask. I'll support you much more than I would support the Doc.