Modern day California, and by extension Silicon Valley, would not look the way it is today without the California Gold Rush [1], as horrible as its externalities were.
Great prosperity often comes at, or with, a great cost. California today doesn't make a great picture when you look at the homelessness and inequality, and the exorbitant cost of living anywhere near where the action is.