Seeing a lot of posts regarding nutrition: leading up to the hike and during. Any suggestions so I don't hit the wall? Also, how warm should I pack?

Thanks in advance. Great community here.