1. I think I am a fairly good developer, when I am in a flow state, I can accomplish a huge amount of work in 3-4 hours.
2. I am very rarely in a flow state.
I am always doing something else, watching some videos, reading books or Feedly, hoping around, etc.
Now comes the controversial part, recently I started using Ritalin. About 5 doses each week. There will probably be consequences (I am not sure), but it's magic. I reach a flow state in under 20 minutes and stay this way for 4h or so.
I decided to change my schedule and only work 4h/day because I constantly do a good amount of work.
Start with waking up on same hour every day, after few weeks add eating healthy breakfast. After a month or two add going to sleep on specific time, then add minimum exercise etc. Gradually, you will build self disciple that would work across everything you do, including work.
I block out 3 hour chunks of time without any interruptions and work deeply on my personal projects.
During my day job, incessant meetings, status updates, slack and stand ups ensure I don’t do much (if any) deep work.
Allows me to focus on tasks and really hit flow like I can't when in a "normal" state of mind. I'm not alone in this!
I've considered trying Adderall but who wants to get addicted to amphetamines?
I do make sure to eat really well so I don't get tired physically.