This quote means that when we experience difficult or terrible things in life, a lighter approach can help us cope with them. The dark sense of humor referred to is using jokes or sarcasm to handle a difficult or frightening situation. This approach can help us to see the positives and make us feel better about the situation. It is a way to take back some control in an otherwise disempowering situation.