Or perhaps a working partner and a willingness to get by on one income. Know a couple who did this in NYC for a couple of years on non-dev salaries and the trade-off definitely opened doors for them.
How is this any different from taking your entire paycheck and dumping it into a single stock each month? It's effectively a gamble, and often employees are too emotionally invested to make a rational financial investment of that scale.