I'm going reply to this thinking, not the specific post.
The thing with technology is its ever changing. As should be obvious of you think about your computer /phone. Trying to stay up to date is hard, and if you need to find a new job & have out dated skills it can be hard.
However, getting into management, design, sales, product etc. Is very easy and will naturally come. The industry is hungry for experienced people. The risk is you might find yourself at a position change in your 50's and not be hirable. You will get 20 years of work without a problem if your competent. After they is murky.
As for salaries, out of college you can get six figures from a top school and 70+ from an okay school with an undergrad. While people aren't making 250 an hour like in y2k days, it is still a well posting career that gets into 6 figures with out a problem.
I am title a Senior Softeware Developer at 13 years out of college, but do more design docs then coding personally.Ihave also done manager role at prior jobs.