I remember an industry teacher once saying to me that "You'll probably never put '10 years experience in Technology X' on a CV." because by the time it's been around for that long it will be pretty much obsolete. The fundamentals of computer science won't change (big-O, synchronised distributed systems, logic etc.) so I suppose it will just come down to re-learning the modern day tech.
But that's the same for lawyers (fundamental laws / processes unchanged, need to be up-to-date on modern rulings and changes), doctors (fundamental human physiology unchanged, need to be up-to-date on modern techniques and drugs) sales assistants (knowing how to greet and assist a member of the public never changes, need to know how to use the latest cash register / Square-up card reader terminal).
I suppose you can't escape it in another industry. I still stand by my point that your skillset as you get older will make you more appropriate for other duties.
It might be called wisdom, mentoring, what have you but basically, having been in situation X before, you can give sensible advice to someone just entering situation X.
Monetising that is generally harder
>> Monetising that is generally harder
Tell me all about it! So, I've heard of elephant graveyards and jet graveyards... Now, where do all those grizzled, veteran (old) programmers go away (other than into management)?
:)