My advice is to stop seeing your career life as programming. Figure out what domain you are most enthusiastic about, then only view programming as a tool for problem solving.
Personally I could never be enthusiastic if the topic is front-end web or game programming. As far as software I think back-end scaling, data science, AI, energy and materials simulation are more interesting directions.