It would not be healthy to frame failure (which involves pain, bad feelings) a good thing. Considering mistakes a teacher would also be a mistake. Nice that it worked for you but considering humans as complex as they are the same prescription would not apply to all.