Yup, prior to the tech boom, SF was not in good shape. Not dying like Detroit, but not really growing either.
25 years ago you didn’t go to Dolores Park because it was a dump. Now Valley was working class, Glen Park was awful.
Now those places are havens for the young and rich.
There is no reason why those times can’t return.