Tim Herrera recommends keeping a failure résumé:
Keeping a failure résumé — or Anti-Portfolio or CV of Failures or whatever you’d like to call it — is simple: When you fail, write it down. But instead of focusing on how that failure makes you feel, take the time to step back and analyze the practical, operational reasons that you failed. Did you wait until the last minute to work on it? Were you too casual in your preparation? Were you simply out of your depth?
“The definition of insanity is doing the same thing over and over again, but expecting different results.” —Albert Einstein