There are many element sin Hemingway's writing that you mentioned. The Sun Also Rises has all of them. Post -war in America had left many disillusioned, and left America in search of finding meaning. The "Lost Generation" in the novel all drink heavily, and bullfighting is a prominent sport, as well.
Hemingway's hero follows a code, and usually includes drinking, some war-time trauma, and the pursuit of manly activities.
The Old Man and the Sea is an epic of a different kind of battle. Hemingway's hero in this story is less overtly "manly" and more introspective.