Given the market of the last decade, investing everything above the 30-40k expenses and income tax in the S&P500 and re-investing the dividends would have brought GP there. Not really sure about how one can make it with 30-40k including rent in the Bay Area, but this sounds like the most reasonable takeaway for most readers.
Prior to covid, find apartment within 30 biking to work, get two bedroom, split with roommate.
Going out $150/month
Limit yourself to going out with coworkers once a week, social gatherings once a week and a rule of only buying one drink while out.
Groceries & clothes $400/m
Make all your meals at home unless your work offered fully subsided meals and or on specific days subsided meals.
For clothing, only buy once the piece no longer serves it's function. Do not buy simply because it looks good or it has some "new feature".
Subscriptions $70/m
Netflix, Spotify, GitHub, Youtube Red, and Audible.
Books $50/m
Libraries are a good saving spot here but sometimes you're unable to get some of the new technical books.
Bike maintenance $500/yr
You're going to put wear and tear onto the trusty bike.
Remaining $0-10k/Yr
Yolo. Flights back to see family. Replacement bike if it gets stolen. Random transit trips to see friends.
Free beer, pizza and get to meet interesting people.
You might as well get the advice "marry rich" - it's probably more likely.
Debt is a killer. I used to have a lot of credit card and personal debt, and was paying over $1,500/mo in interest on less than $100k USD/year. If you get stuck in that trap it's damn near impossible to get out of if you overextend yourself.
A lot of folks grossly underestimate what they spend eating out and drinking. Probably less of a problem now than a few years ago, but coinciding with my credit card debt phase I would have told you I spent "$100, maybe $150" a month when it was closer to $400-500.
If you're not set up for retirement (see below) there's little to no reason to be leasing a brand new BMW. I was absolutely guilty of this and it's tens of thousands of dollars I essentially set on fire for three years. You don't even have to sacrifice the nice car, my 2016 5 series was less than $25k out the door and I got it right after someone turned it in off-lease. My payment is less than theirs was and it'll be paid off before the warranty runs out. I'll then have an "asset" (not really) worth $5-10k, and can get another $25k off-lease car which will cost me less and get paid off quicker, if not in cash.
If you max out your 401(k) you are saving about $20k/yr while only reducing your taxable income by ~$15k/yr depending on your marginal tax rate. A Roth adds another $6k to that if you're under the cap (something like $140k for 2020) and you can withdraw the contributions from that account at any time without penalty. Not helpful for someone making $40k/yr but if you're making $100k it's hard to make a good argument not to max out your retirement unless you live in one of the outlier cities as far as rent and expenses.
There are absolutely the /r/personalfinance types who act like if you go to a restaurant more than once every six months you're going to end up destitute and starving while homeless. And the FIRE community is a borderline cult. But nobody working in our industry, even in super high-COL areas, really has to worry about retirement, even if they've made dumb mistakes like I did that ended up costing hundreds of thousands in the long run.
Even the absolute worst luck gives you perfectly acceptable returns on 30-35 year timelines. Multiple orders of magnitude better than a savings account, for sure.
Time and time again the best approach for highly compensated people who don't want to actively manage their finances is to put a chunk of every paycheck into a broadly diversified range of index funds and forget that it exists. In the US this means a) getting your company 401(k) match no matter what; b) putting the rest into a Roth IRA as cash flow/debt service allows; c) putting the rest into the remainder of your 401(k) as cash flow/debt service allows; d) putting the rest into a non-tax-advantaged brokerage account that basically mimics your 401(k) but probably has better fund options.
Meaning if you were planning on retiring during one of the long sideways or downturns your required "time in the market" may have just been extended by a decade. The impact of that depends on the unique time constraints of the individual and how well they addressed risk exposure.
Add to that, most economists don't think the long-term market returns will approach the past returns. Most now think 6% is reasonable, when the past was 10%-12%. This extends the horizon further unless you are willing to increase risk exposure by selecting higher growth stocks.