Thanks for mentioning in this, which I hadn't seen before. I collect stories of successful aging because I am now 66 and hope to keep creating software, and ideas that can be implemented in it, for some time to come!
Just eat well and exercise! Exercise is hugely important for maintaining cognitive health. As is eating well. Beyond those things you don't have to do much else!