Were you actively trying to keep brain in shape ? As a medic (neurology is not my field though) I am interested if it is possible to keep brain in shape by "mind exercises" or it is urban myth.
I wasn't doing any specific mental exercises. Like many software dev's, I don't get the most exercise, but I do get some. I have a decent diet and I'm pretty much in-shape.
PubMed might be a good place to research this. I believe believe diet and pyshical exercise are widely known to promote brain health. There are other things like mental exercises or nootropics studied too.