Getting to 'the heart of the bad'

I knew Sam's joking was not a sign of joy or happiness but his way of coping, maybe the only way he knew how.