Hope is definitely not the same thing as optimism. It is not the conviction that something will turn out well but the certainty that something makes sense regardless of how it turns out.
A person however learned and qualified in his life's work in whom gratitude is absent is devoid of that beauty of character which makes personality fragrant.