here are 7 habits to live by:
1. Eat every 2-3 hours, no matter what. You should eat between 5-8 meals per day.
2. Eat lean protein with each meal.
3. Eat fruits and/or vegetables with each food meal.
4. Ensure that your carbohydrate intake comes from fruits and vegetables. Exception: workout and post-workout drinks and meals.
5. Ensure that 25-35% of your calories comes from fat, with your fat intake split equally between saturates (e.g. animal fat), monounsaturates (e.g., olive oil), and polyunsaturates (e.g. flax oil, salmon oil).
6. Drink only non-calorie containing beverages, the best choices being water and green tea. diet soda is FINE. don't listen to the people who say otherwise.
7. Eat mostly whole foods (except workout and post-workout drinks).
form those into habits and follow them 90% of the time (no more than 4 meals out of an average 42 meals per week should violate any of those rules) and you're well on your way to a perfect body.