The math still works out. $40,000/year on rent, 50% tax rate at $600k/year total comp for a mid/high level engineer (if you’ve been working for a while). So after rent you’re taking in $240k/year. Let’s say your other expenses are another $40k.
That’s $200k saved per year. In some places that’s your entire annual salary!
So you’ve saved $1m after working 5 years.
Realistically the equity is worth a lot more over time due to tech stocks generally performing well and long term capital gains.