To have a healthy sense of optimism isn’t about hoping for a perfect world, it’s about resolving to be resilient in a decidedly imperfect one.