Understand it all to succeed

Why doesn’t flour always react in the same way? What is the precise role of an ingredient in a recipe? How can you check a preparation’s pH, measure its sugar concentration or understand the cause of a defect?