I really liked this read. I don't think you have to be a pessimist in order to adopt this mindset, just knowing the pessimist's perspective can be a healthy way of focusing on what matters
For example, in a bad relationship, assume that you have met not the best person in the world and acknowledge that it is very hard (even impossible) to change them, but take small everyday actions that make the relationship durable despite of that.