The First and the Best thing, Minimize Distractions. Social media is a great platform for making friends and chit-chatting but is also the worst in some cases. You can do these few things that help you make the best focus on problems - Practice Meditation, Work on a proper schedule, and lastly be productive instead of busy.
Be Productive instead of Busy - Tim Ferriss
Typing code can be a discouraging task and can easily break your productivity. For this, you can certainly take advantage of code generation, or write scripts to small automate tasks that need time to complete.
You’re either the one that creates the automation or you’re getting automated. - Tom Preston-Werner
Working on new projects can be an excellent way to keep your mind fresh. Hobby projects can reflect more on your own ideas and help you grow as a programmer. The side projects can help you learn new skills along the way, which in turn will help you improve your productivity in future projects and works.
Once you stop learning, you start dying. - Albert Einstein
Most of the successful people and the entrepreneurs insist on writing goals and achievements, so what are you waiting for? start by writing as much as you can and finally you will find your path.
And also Measure your progress and work on your weaknesses.
Adults devise a plan and follow it. Children do what feels good. - Dave Ramsey
Reading is good for you because it improves your focus, memory, empathy, and communication skills. It can reduce stress, improve your mental health, and help you live longer. Aside from knowledge transfer between developers, reading the tech books is what we consider a good way to improve our skills. While some of the books will not tell you how to deal with a particular problem, it will explain you the origin and give you other perspectives.
A book is a gift you can open again and again. - Garrison Keillor