Not to discount the benefits of living in Silicon Valley. If you love the atmosphere and everything then it's probably the right place, and that's worth a certain amount of money. But just looking at the numbers in a spreadsheet it's objectively better to live in a small-to-medium sized city (or even rural area if you can find the work!) if you're looking at take-home pay, savings rate, retirement savings, etc unless you're in a very well-compensated role in one of a few very select corporations.