There's a popular meme going around the boot-camp world: "I'm a 3-month-old fetus. Is that too old to become a developer?"
Listen up, all you 40-somethings! You're still a kid, as far as your career is concerned. I started learning to code way after 60, and I am NOT too old to become a developer. I'm doing exactly what Gnavakov said, above.
The tech world needs a ton more diversity (along with gender equality), and that means more brown & black skin, more GLBT's, and definitely more older folks. So, I'm doing my part in two of those areas (gays and grays).