Sometimes YouTube, sometimes cookbooks, and sometimes if I go to a restaurant and if there's a particular dish I like I'll just ask. Most places are happy to tell you. For all though if there's something that I think it could be better I'll just experiment and add or remove stuff.
Serious Eats. America's Test Kitchen. Cookbooks from the library.