First you need to realize that most of the work that comprises of a Software Dev work is mentally taxing work. You getting distracted could also be a way for you to cool your mind.
Apart from this however I believe you can benefit by training your focus. You can do this by a variety of ways:
- Pomodoro Technique but start off with 15 min work & then X amount of break. Then slowly increase the focus time every week by 5 minutes perhaps?
- Dopamine Detox: This only works if this is the reason for your distractiveness
- Figure out if there really is something underlying that's leading to anxiety? Are you afraid of the outcome of your code? Do you fear the task you are working on?
You can pursue both excitement & smaller ideas as well! You can also pickup various other activities that are highly fulfilling, such as teaching (this could be mentoring juniors or teaching tech to college kids)
You could independently pursue smaller ideas that would lead to a greater fulfillment in life.
That being said, you can be entrepreneurial within big tech companies & run pilots for self made projects (gmail was created this way).
I loved working at Microsoft. From a management that actually cares and understands dev struggles to great code review practices that don't waste dev time with bs.
Plenty of opportunities to learn, switch teams if needed. I've seen people shift from team to team just because they wanted to add their expertise to another product.
I'll admit, if you're a startup kinda guy you might find things a bit slower than you're used to. Focus is kept on extreme quality.
I hate the fact that Microsoft gets a bad rep coz of the older practices from Gates and Balmer's time. As a company it's really changed and they've embraced open-source finally.
I think I could do with something with this. At least its nice to know that there's some Twitter accounts that are worth looking at and this twitter account is a diamond amongst many other accounts. Nice work there.