I personally feel that finding humor and laughter in life, even in the face of horrible adversity, is very important. Laughter has gotten me through horrible things. So I often explain my sometimes inappropriate humor by saying:
"If you can't laugh at life, you'll never stop crying".