I know this may be sacrilege to some, but: Consider moving to a less desirable place if you can. I got priced out of my hometown of Seattle. So I moved to a small town in rural Oregon and I couldn't be happier. The combination of spending comparatively little on housing + a tech salary is hard to beat. I have my own shop! It feels like freedom, even if it comes at the cost of being near my extended family.
I don’t think this is good advice financially, though there is more to life than money. First, if by “tech salary” you mean a software engineers salary or a product managers, then you should be able to afford a house in a place like Seattle. It might be tight if you are early in your career, but it is very doable. The main reason this is likely to be bad financially is that your house won’t appreciate like a house in…
In retrospect, the best thing I could have done with my money would have been to buy the most expensive house in the best neighborhood I could possibly manage. Put it all on the table.
But I didn't want to play that game, and neither did my partner (We have bad memories of the 2009 recession and both hate the idea of debt). So I suppose I traded the future riches for present flexibility.