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!
I admire you. I hope that I could be healthy to code at 66. Wish you all the best
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!