My observation is that age discrimination isn't a brick wall, so much as an increased difficulty in doing things a person should be able to do. It's not like you can't get a programming job after 40, because obviously people do. It's just that job searches are no longer completed in 2 weeks; it's closer to 4 months.
What no one told us in school was that getting better at our jobs, past a certain point, makes job searches harder and more complex, especially because HR drones don't understand our specialties and tend to use them against us. ("Doesn't have 3 years of Swift experience? No hire.") Structuring a society as a pyramid actually works when it is in transition from poverty to industrial wealth, but it's a disaster in a stable state.