Share on PinterestNew research shows that eating a good diet during youth and middle age helps maintain cognitive function later in life. FG Trade/Getty Images A healthy diet