Failure is all a matter of perspective. Think of all the people you admire. I guarantee you they all failed at one time or another. The key is to recognize setbacks for what they really are-entry points for learning, not validation that you aren't good enough. After a disappointment analyze your actions, get feedback from friends, and take inventory of what you could do better next time. This type of self-reflection and improvement will ultimately make success inevitable.
