If you take a survey of hiring managers they will point to three primary reasons that candidates 40 - 60 have a harder time finding jobs: 1) They are typically more expensive than "market" for the same role a younger person can fulfill at acceptable tradeoff of competency - higher salaries, higher related costs like healthcare for a family, expectations around retirement programs, etc. 2) They are less flexible - the…
#2 is changing because we are entering the baby-boomer phase of IT. It was recent that that there were not many people programming, and then the field blew up with tons of young people coming out of college. Those young people are now turning into older people. Where I work now we have a median age for the IT staff in the high 30s. I don't think anyone is under 30 anymore.
#3 can be true of anyone, depending on how well they have managed their career. Sadly, I have interviewed people with '5 years experience' who learned their job in 3-6 mos. and have just continued to do the same job for 5 years. Their actual experience ends up not being much more than a recent college graduate.