Parents somehow shouldering the burden of their child’s fatal illness, a low-ranking baboon who has a network of friends, a dog resisting learned helplessness—these are striking examples of individuals who, faced with a less than ideal situation, nevertheless excel at coping.