Hedge fund might be an exception like academics and research. In most non-research oriented companies you will see more 40+ in management than in programming. Like you mentioned FoxPro people having bad time, even if you are skilled in latest 'programming' trend, a company might prefer (IME, most of the time it is true) someone younger than a 40+ in that role. For most companies, the marginal utility of a person plateaus or declines after about 5-7 years of progressive experience.