In a nice neighborhood in sf, you're not going going to pay less than 1600 for a room in a shared apartment, or for half of a one bedroom place.
Worth keeping this in mind when you're comparing SF salaries with real-world salaries. If Google hires someone right out of school to work in SF at $100-110k, it's really like getting hired right out of school to work in a normal market at $60-70k, which isn't nearly as rare (but still pretty good for a brand new guy; in positions where I used to do hiring, we'd usually hire these somewhere between 45-55k).
I think the best way for a programmer to maximize salary is to work remotely for an SF company, getting paid an SF salary, and living in an area with a reasonable COL and (preferably) low-to-zero state income tax.