In SF, I used to think the answer was to build more housing, lots more. But, after hearing from sooooo many NIMBYs and so much extreme angst against any kind of growth, I've come to realize that SF doesn't deserve tech companies or any companies for that matter. It's time to accept what the locals want and start acting like it. Remove the incentives for companies in SF and start applying disentives.
Tech needs a new home, a new city, perhaps one that hasn't been built yet. Perhaps one where innovation will be welcomed instead of stifled. One, where inclusiveness is all encompassing (and applies to housing) and not just a catchphrase used to be politically correct. One that isn't covered in poop. A city where enough housing supply can be built for everyone.