I feel like I am similar. I have been reading A Mind for Numbers- How to Excel at Maths and Science by Barbara Oakley and it goes in to how to develop focus and how to learn. I find it pretty applicable to software development. It has been pretty good and something I am trying to apply. I would recommend it. Good luck to you.