Also known as
If it ain't fun, it probably ain't right.
Motivation
Having fun in work is a big deal when it comes to the creative process that is software engineering (or engineering in general). There will always be tasks that are less fun. Performing those tasks first will make you look forward to the fun tasks.
Applicability
This rule is applicable at work as well as in your private life.