Finding the perfect cookie recipe is no different than any other scientific experimentation. This video explains how to use baking science to find the perfect chocolate chip cookie that suits your palate.
We've talked about some of the ways you can tweak your cookie recipe before (using different sugars, adding baking soda, etc.), but this video from the Reactions YouTube channel looks at some of the other major cookie components.
It all depends on what kind of cookies you like. For example, if you want chewier cookies, use bread flour instead of all-purpose flour. For cookies with more complex flavours, bake them at 190 degrees Celcius instead of the standard 180 degrees to allow for more caramelization.
Even the temperature of the butter you use can change how your cookies turn out. The colder the butter you use, the more compact your cookies will bake. If you use melted butter, however, the cookies will come out thinner, crispier, and with a wider diameter.
How to Cookie with Science [YouTube]