The point about having self-discipline to work on projects is very true. I have found that the best way to stay motivated is to write as little code as possible and deploy as mush as possible. My usual commit is never more than ~50 lines of code. There is no better satisfaction than seeing your code doing magic in the wild.