It's about "actual problem solving, and building things" (which is good and enjoyable at any age) versus "navigating oceans of constantly changing APIs" and getting bitten by minuscule oversights in enormous volumes of documentation, which requires a lot of stamina, and maybe optimism, that you have less of as you get older.
I hate arcane APIs with a passion. I love programming and building things. Always have, always will.
I think one's tastes don't change much with age; what changes is your willingness to put up with things you don't like. Like a grumpy old uncle who says inappropriate things at family reunions, at some point in your life you just stop pretending.
My mother is in her late fifties and recently returned to working in a children's daycare after being a manager for many years because working with children was what she was passionate about, and she realised she had advanced away from what made her want to go to work.
I feel the same way about moving away from programming - what I enjoy is digging my hands deep into the rich code, smelling the mix of coffee and ozone, feeling the flourescent glare burn into my retinas - THAT is what makes life worth living!
I guess you can take the boy out of coding, but you can't take the coding out of the boy!
So I now have a reasonably high level job with a lot of variety but I usually spend a couple of days a week developing stuff - altogether not a bad combination for me. I do manage some people but as they are all smarter than me and very self directed it is actually a pleasure to do.
[NB By far the most stressful job I had was as co-founder and CTO of a VC funded startup]
When filling out a 'secret question' for some site, it ask what your ideal job would be. I didn't even blink, it was: developer.
Do I want to be doing this when I'm 50, hells yea.
If I had trillions of dollars, I would still code. It's who I am, it's what makes me happy. If you don't think you'll like development at 50, then you may have picked the wrong career.
I actually returned to programming after years managing programmers in part because I was unhappy. I realized that the further I got from the machine and _making_ the less happy I was.
So, if you asked me whether I wanted to be 'managing' at 50, I'd say "Hell, no!".
The enjoyment of making things work, learning and shipping it real. I hope I'm still able to feel those things at 80. I never got the same satisfaction and enjoyment from managing people and processes.