One of the best tricks for doing this is to imagine the person you’re resentful of as a little kid. Think of this little person acting out of fear, doing the best they can to protect themselves and attempting to deal with their own suffering in the only way they know how. People act poorly because they are in pain or confused or both.