I cannot help but feel like a lot of the problems in the over-regulation of construction and real estate is due to public ignorance and apathy. If people cared more about how well built their homes were, we would not have needed tremendous government regulation to force builders to build safe houses. My father works construction and between the UCC being dozens of chapters long and every municipality having its own grandfathered in or exceptional bullshit make breaking ground a minefield of bureaucratic nightmare.
In hindsight, I wish we could have produced third party unaffiliated review boards for new construction so that builders could get their blueprints and finish products certified. We could have had an industry of competitive certification processes directed towards homebuilding, and the most trustworthy and reliable certifications would have gained name recognition builders would desire for well built property. Then we could avoid this entire trainwreck of bureaucracy, but understandably volunteer certification doesn't help the poverty stricken when being offered a "cannot be beat" deal on a derelict unsafe house, which is the root problem in all this. It is just generally a mess and as someone coming from a software background who has a father in construction to hear all the disasters from, wish there were a more obvious solution other than "try deregulating and hope you don't get the poor killed or screwed over in the process".
And this isn't some long ago historical thing. This was the 50s and 60s.
Actually, the exact opposite is the case: US zoning laws were created by the 1910s/1920s era "progressive" movement as a leftist social improvement project. The goal was to legally require that poor people would thenceforth all live in such conditions as the (mostly bourgeois) progressives deemed correct and "proper" according to middle class mores of the day, by making other conditions illegal.
See e.g. "Living Downtown" by Paul Groth for more info: http://publishing.cdlib.org/ucpressebooks/view?docId=ft6j49p...