And also I agree to work overtime near deadlines because my employer lets me super flexible work time when there's not much work. So it's a tradeoff.
Of course, if your employer doesn't compensate with something, you're getting screwed. But that's true for developers, waiters, clerks, everybody, it's not something specific of our kind.