If you are young, single and in tech, then it makes sense. You don't care if you share an apartment or even a room, you'll make good money and you'll acclimatize to how ridiculous the prices are over a few years.
If you are older, and you have a spouse and/or kids, then it makes less sense. It actually makes no sense if you're coming from a low cost area, and more sense if you're moving from NYC to Bay Area. If you're coming from a low cost area, you will suffer, because even if you owned your house outright, if you sell it it may be a decent downpayment, and then you'll have to spend a lot of money on mortgage. Plus school, commute, etc. I wouldn't recommend it in that situation.
If you are older, and you have a spouse and/or kids, then it makes less sense. It actually makes no sense if you're coming from a low cost area, and more sense if you're moving from NYC to Bay Area. If you're coming from a low cost area, you will suffer, because even if you owned your house outright, if you sell it it may be a decent downpayment, and then you'll have to spend a lot of money on mortgage. Plus school, commute, etc. I wouldn't recommend it in that situation.