Nr 1: It will most likely not work on the first try
Having errors is in no way an indicator of how good/bad you are at writing code. Sometimes it does not work on the 35th try either — still ok.
I wished that someone instead had said is: “Cool, there is an error — what do we do with it?”
Nr 2: Everyone has an opinion about the ‘right’ approach