To this I would add: do work that pleases you, not work that leads to something you think will please you.
I was first introduced to this from one of the Indic texts - perhaps one of the Vedas - where people are told to do work and not worry about it's reward.
This is a good way to protect yourself from the folly that the parent poster describes.