As noted elsewhere, it seems Europe may be a better place for older folks. I know that some nations have some fairly strict laws about discrimination.
In the US, we have the same laws. It's flat-out illegal to discriminate by age, as it is by race, religion, gender, pregnancy, marital status, etc.
Out of that list, if a company tries anything other than age discrimination, they are pilloried and investigated.
However, in the IT industry, age discrimination is actively encouraged. Companies write job ads that basically say "Bros only."
The story I hear, is that older folks are "just waiting for retirement, and won't be loyal." That's rich, in an industry that has been completely formed around the idea that engineers will stay at a company for no more than two years.
In my case, I had my retirement set, years ago, and would have been willing to work for half of what a lot of younger folks would demand, if the work was motivating, and the work environment was good.
I have an enormous portfolio of exemplary work. My skills are "five minutes old." I'm not some old duffer, sitting on COBOL skills (which, I understand, would actually have made me more attractive).
It's been my experience that no one ever bothers to look at the portfolio. They've already made up their mind, and the only reason they are talking to me, is to tick off an EEOC checkbox.