Peter Cameron said this quote

Having bad experiences sometimes helps; it makes it clearer what it is youshould be doing. I know that sounds very Pollyannaish but it’s true. People who have had only good experiences aren’t very interesting. They may be content, and happy after a fashion, but they aren’t very deep. It may seem a misfortune now, and it makes things difficult, but well—it’s easy to feel all the happy, simple stuff. Not that happiness is necessarily simple. But I don’t think you’re going to have a life like that, and I think you’ll be the better for it. The difficult thing is to not be overwhelmed by the bad patches. You mustn’t let them defeat you. You must see them as a gift—a cruel gift, but a gift nonetheless.