How does a comedy writer cope with a series of tragedies? In this case, by taking 23 Yale courses online.