I recently experienced this (to a lesser degree still do). What I do is take a break from coding (apart from my day job which requires I code). Do something, different that relaxes your mind. When your ready to get back to it, don't jump directly into coding, first plan on what you want to do/make/learn. Get a clear plan mapped out and an approach. Also have multiple items that you can work on. If you get stuck on something for a while, jump to another item briefly, but make sure you return to what you were stuck on before (many times when people jump around they lose interest in what the were previously working on). All the best man!
Thank you! I'll remember this!
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.