Comment Gotta keep learning (Score 1) 418
I'm 58. During my career, I have worked with PDP-11 assembly language, 68000 assembly, FORTRAN and PL/I on VAX/VMS, x86 assembly and C on MS-DOS, "C with Objects" and later C++ on Classic Mac, C++ and Java on Windows, server-side Java for a short time, Curl, client-side Java, Objective-C/C++ on MacOS and iOS, and I'm currently doing cross-platform Qt development while I spin up a new phase of my career doing independent and/or contract iOS development.
The thing that saved my career was the personal computer, which allowed me to develop new skills at home on my own time. A lot of my Java training was self-driven, and I am completely self-taught on Objective-C and Cocoa.
At 40, I wouldn't hesitate to go back to school for formal training if I could find an appropriate program, but until then, pick something that looks like fun (in my case, it's iOS development), pick a project that's fun enough to motivate you (even if it'll never get marketed, or even "finished"), and dig in.
If you don't find software development fun or motivating, find something else that is. On this anniversary of Steve Job's death, remember that life is too short to do something that doesn't motivate you.
Good luck!