This article is on the frontpage so this might be a bit redundant but this article points to a worrying reality that we young programmers don't want to confront.
http://blogs.law.harvard.edu/philg/2015/04/
Many people just dismiss the issue by saying , "If you don't stay with the times then you deserve to be fired" but if MIT Grads , who are in the 99th percentile of ability and pedigree are in such a bad situation then one can only imagine how bad it is on the ground.
So , I'd like people who've been in this field for decades or those who are above 50 to share their advice and experiences.