I am 64. I wrote my first program in 1970 and have worked as a programmer since 1976. Programming was a good career choice. For many years I was a manager and pretty much hated it and returned to programming. I quit my job and went to work at IBM as a software engineer the year I turned 50. I was the oldest person in my department, and was a bit of a father figure to some of the kids there. Otherwise I did not fit in and left after two years. I worked at about the same salary on a job for the next ten years and now, at 64, I have a nice job helping to translate COBOL to Java. I am still making a six figure salary, but I will retire in 313 days (I wrote an app that gives me exact time down to the second). I had no problem finding a job when I was 62, but the job was one where I needed Java skills, plus in-depth knowledge of legacy programming languages.
I taught myself Fortran, then Cobol, then PL/1, then Focus, then Basic, then VB, then Java, then Javascript, then Ruby. I find it easy to upgrade my skills. I code in PHP for fun in my off time, so when I retire, I will still program my little PHP projects for fun. Programming is not what I do, but who I am.