Building codes sometimes kept buildings from falling or burning down but always gave steady work to well-connected carpenters and electricians. Zoning and planning permission has protected rich landlords rather than helping the poor. Rent control makes the poor and the mentally ill unhousable, because no one will build inexpensive housing when it is forced by law to be expensive. The sane and the already-rich get the rent-controlled apartments and the fancy townhouses in once-poor neighborhoods.