I think the key to staying interested in programming is constantly trying something new with technology. But something new was not enough for me. I needed more motivation. So I would find something else I loved and build a tool for it in that new technology.
This is a companion discussion topic for the original entry at https://triplebyte.com/blog/how-i-pick-coding-side-projects-that-keep-me-motivated-to-learn