Earlier quoted context omitted.
> You don't want to be coding by age 50 anyway. Sooner or later it has to end. Why not? One of my favorite coworkers ever was over 50 and he still seemed to very much enjoy coding.
I'm pleased to read all the replies to my post - of course there are no universal truths! From my side I love programming per se (logical/creative thinking, etc), but programming as a profession is stressful: deadlines, unsatisfied clients, changing technologies... At age 50 I'd rather give my body and mind a rest, and focus in my family or whatnot. One thing is sure for me: I didn't come to this universe to spend it…
I haven't had a stressful deadline in a very long time. Indeed, I've been weeks or months ahead in almost all cases. I've used that time to get a jump on integration, or help others get a jump on their schedule. By the time I'm ready to ship, the only thing between me and proper operation is disinformation from others.
Now, granted, that's annoying to some people. But just consider that some of that is just ... show business. The people that that annoys are probably not the people you want to work for anyway. And if you do it "my way", you'll know that, and they'll probably know that.
The "changing technology" part is the least source of stress - after a while, you begin to recognize the patterns that tools are designed to solve. So you're down to the fresh ... heck that is Other People's Code.
( the Other People's Code thing is purely about lost or asymmetric information - but it's a really important skill, if for no other reason than to know what not to do).
You just have to learn to separate the act of getting real work done from the act of performing in the corporate Kabuki theater that surrounds getting real work done. At least then you can let it run its course - because very close to all organizations eventually develop autoimmune disease and die of it.
It's not that I am not sympathetic - I am. It's just that after a couple of decades of doing this, you can understand the patterns and apply your efforts to the parts you know you can fix.
But don't let your mind rest. If you rest, you'll rust. A fellah I worked with since 2011 died in 2015 of stage 4 colon cancer, but other than that, he'd still be going well towards 70.
I want to be like that guy, without the colon cancer. And I always have.