Your willpower is limited, so if you spend the most of it during the workday, you won't have enough to pursue your personal goals. It's easier to get distracted, or simply to be tired.
One solution is to reverse your schedule. Wake up earlier, and spend your first hours of the day (this moment where you have the highest focus ability / willpower) to pursue your personal goals. You will allocate your best energy to it, and then go to work.
It's great if you can spend the first early hours on pursuing your personal goals. I wish I could do that in winter.
It's a question of habit. You may be interested by the Miracle Morning book.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.