That's my angle, but there are plenty of other fields too: healthcare (nurses make as much as most SWEs and can live anywhere in the country), government, certain employee tradesmen (electrician, etc.), basically anything that requires some sort of license or training. Life is long, spending a couple years to get 10+ years of good returns is a wise investment.
I've never been to the Bay Area, so what I'm about to say may not apply, but look in any middle-class neighborhood: maybe 5% of the people are in tech -- what is everyone else doing? The above is a sampling of careers that have provided people in my neighborhood a comfortable American Dream style of life.