Work on interesting things or make the things you're working on interesting. Don't work only for yourself; take on the mind of a servant and you'll often be grateful. Don't look for total fulfillment from the things you can see, or the things that pass away. Store up treasures in a place that won't fade away.
Any advice to someone new in the industry to avoid burnout?