The main thing that helps me is making it a point to do something code-related everyday for at least 5 minutes. Whether it's pushing a commit, researching a framework, or reading through some documentation, that 5 minutes usually turns into much more. I also try to engage in various dev communities and seeing everyone achieve their goals is a huge inspiration and motivation.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
For further actions, you may consider blocking this person and/or reporting abuse