I think I big part of it is keeping healthy food in the house. If I have junk food I'm more inclined to eat that, but if all I have is fruits and vegetables I'll snack on them. This is especially true for my problem foods. I have no self control when it comes to ice cream, so when I was trying to lose weight I wouldn't keep ice cream in the house and just go out for a cone every now and then.