My brain tells me when to quit each day and it has helped tremendously with preventing burnout. I might code for two-four hours per day. However, I don't try to avoid work or block projects or steal credit and I'm always game for a new project--though I hate building greenfield apps because it seems like the devs are the only ones into it and I thrive on being part of a cross functional team.
I'm on a project right now where we developers are driving out every requirement. The business is very behind, hasn't really driven any requirements. I warned everyone at the beginning that we were going to outrun them. A few devs were pumping out code like crazy and I tried to just chill. Now we're scrambling for work--well, I'm not.