My current job has tons of free junk food floating around all the time and it can be hard to resist. The thing that works best for me is tracking my eating. Sometimes the biggest deterrence from taking a bite is the thought of having to open my app and adding the food. I’m lazy, so this works well for me.