What Do We Do With Failure?

If we live enough of our lives, chances are very high that we will come up short and fail at more than a few things. How do we deal with failure? What can we learn from it?