I had to learn the hard way. I used to improvise and substitute and would wonder why it came out wrong until I actually started following recipes properly. Now, I follow recipes faithfully until I've mastered it and only then will I start to play about with the ingredients.