One useful piece of advice that I have received is that there are tradeoffs in giving shit at work. This article mentions downsides of not giving a shit, but doesn't mention downsides of giving too much shit, that is, getting too emotionally attached to the work you are doing. Especially in big companies projects get cancelled or requirements change or managers assign work that doesn't even make sense, and if you are emotionally attached to your work when this happens it can cause interpersonal issues, low morale or unhappiness in general.