Blog post about motivation among programmers
mussol.org
mussol.org
So, to me it seems the main challenge is to be able to make steady progress with or without motivation!
So, how to do that? Well, I'm sure different people have different stories, but to me, the one single thing that immediately made this possible, was to carefully implement the technique described in "Pomodoro Technique Illustrated", by fellow Swede Staffan Nöteberg [1].
The book isn't that long, and you probably could get the gist of the idea elsewhere on the net, but to me this was so "game-changing" :) ... that I don't regret buying the book for a second.
[1] https://pragprog.com/book/snfocus/pomodoro-technique-illustr...