The shortage of cheap housing has more to do with land prices, and very little to do with the cost of making houses safe to live in.
SF has both banned new SROs (flophouses) and made it illegal to tear down the old ones.
If we must live in a world where no one gives a fuck about the poor I honestly am not so sure they should be denied at least their slum house rather than freezing to death behind a dumpster.
https://www.realtor.com/realestateandhomes-detail/1882-Quesa...
What's the cheapest legal free standing residence in san francisco? I couldn't find anything under half a million. That's an easy 1/3 the price of any legal freestanding structure.