The act of writing is an act of optimism. You would not take the trouble to do it if you felt it didn't matter.
The only way to deal with death is to transform everything that precedes it into art.