In the developing world, huge cities with sprawling slums have developed as agriculture and rural occupations have been supplanted by mechanized industries.