The choice to pursue a career as a mechanic or plumber or electrician or whatever else isn't a "bad" decision - those jobs are necessary and thus we need people to do them.
SF is a city and has the same needs as any other city, which means it needs people to meet all those needs. You can't have a city with just wealthy tech people because then no one's going to come over to fix the plumbing.
Wealthy tech companies are growing, hiring more talent, and paying them lots of money; this means that housing demands go up (from the people they're importing from other cities/states/countries) which leads to increased prices (specifically because you now have more demand from a group of customers that can afford to pay higher prices than everyone else).
Now, all of a sudden, people who aren't as nicely compensated at their jobs can no longer afford to live in the city they work. The issue is that the city still needs those people - regardless of what wealthy people think.