I agree San Francisco has its problems, but calling it a failed city is grossly overstating the problem. San Francisco continues to have a high degree of social mobility relative to the rest of the United States [0].
[0] http://www.theatlantic.com/business/archive/2014/01/the-geog...