We’ve all been there: You come home to a half-empty fridge, so you throw a pot on the stove and proceed to dump the remnants of every half-full condiment bottle into it with whatever sad vegetables and meat scraps you can find. You take a bite straight from the pot, and it tastes amazing.

As it turns out, some of the tastiest foods were born out of a similarly magical confluence of laziness, resourcefulness, and luck—or simply because someone, somewhere, f**ked something up. From chocolate chip cookies to beer, humans throughout history have often created foods and beverages far more delicious than anything they set out to make.

So, next time you’re cooking and accidentally screw up the recipe, embrace the failure and see where it takes you. If you read through these examples of accidental tastiness, you’ll see that history is on your side.