I try to only have exactly as much food as I can eat before it spoils, and I try to eat it until I have nothing in the fridge, and only then buy more.
For example, right now, excluding anything that hangs out for a bit (e.g. condiments), I have some cheese slices and strawberries in my fridge...