@gnomon It's less good planning and more that working for the university my entire career has some benefits (literally, although I have to cross my fingers about the university pension plan not imploding). Also, while the university no longer shoves you out the door, they do start giving you the side eye after a certain point.
(And after that point, well, I'm not optimistic about the tech industry changing its views about old(er) people. Maybe Y2038 will change that, like Y2K for mainframers.)