I don't think you need to be sad to write a sad song.
The most important single aspect of software development is to be clear about what you are trying to build.