The point was that there are more subdomains in "programming" than a person could learn in a lifetime. Just get out of your niche.
As an example, I personally have worked on: cryptography & secured systems, iOS apps, industrial automation (code controlling manufacturing machines), configuration management, payment processing systems, smart card programming, language design and implementation, devops, and of course full stack web development. I'm not old, just turned 31, and this is only the small sliver of "programming" I've gotten to learn about professionally.
Switching jobs to learn something new is a totally valid reason. Thinking that web development represents all that there is to learn as a developer is like being a "Java programmer" or ".NET programmer." There is a whole world of other things out there.
As an example, I personally have worked on: cryptography & secured systems, iOS apps, industrial automation (code controlling manufacturing machines), configuration management, payment processing systems, smart card programming, language design and implementation, devops, and of course full stack web development. I'm not old, just turned 31, and this is only the small sliver of "programming" I've gotten to learn about professionally.
Switching jobs to learn something new is a totally valid reason. Thinking that web development represents all that there is to learn as a developer is like being a "Java programmer" or ".NET programmer." There is a whole world of other things out there.