Memories of bad experiences with food. and expectations that certain foods will harm us in some way, each contribute to our learning about food and affect our food preferences. Eating a piece of blueberry pie right before an attack of the flu hits or overdosing on sweet pickles or olives, for example. may take these foods oft your preferred list for a long time.