Richard Hamming said this quote

Vicarious learning from the experiences of others saves making errors yourself, but I regard the study of successes as being basically more important than the study of failures. There are so many ways of being wrong and so few of being right, studying successes is more efficient.