When I was running startups a decade ago I would regularly ask devs not to work so many hours. Grind culture was a thing, and it made our code much worse. The effect of lack of sleep and a shitty work/life balance is abundantly obvious in a PR.
It is high time more bosses understood this
At my first job I was the second contributor to a project which didn’t do PRs. If it worked, just push it. My present process is a bit more involved!
"A good night's sleep is the best debugging tool"
The combination of long hours, daily stimulants, and minimal planning can make for some very fast MVPs, and that’s about it. Any time I’ve been in a position where I’m burning the midnight oil to make a deadline, I’ve always looked back at the code with great regret. The “fuck it, ship it” mentality makes for some really crappy software, it’s nice that most people are coming around to this.
[1] https://www.atlassian.com/devops/frameworks/devops-metrics
I think, given the right culture, other measures might work well. Not perhaps for a bonus structure, but for helping employees honestly evaluate how they're doing.
... and devolve into (actually measurable) number of hours in the chair.