Those factors are consistent for everyone, though, and it seems that developers have more job induced unhappiness than many other careers. There's something fundamentally wrong and broken with this discipline.
A good point — and as even the article points out, plumbers and farmers live in the same world as engineers and aren't grousing about housing costs or wars potentially brewing. Why is that?
It is almost as if humans are not made for sitting 8-10 hours learning abstract stuff and thinking really hard about imagined logic puzzles in constant stress.
The fact that a programmer would quit their 50h/w job, which they hate, to then take on a personal 80h/w project (open source, saas, educational, etc), which they enjoy, suggests that the malaise has little to do with the craft.