1. He doesn't have to change his spending habits at all. He just needs to direct the extra income into a saving account, maybe check on it one a month/quarter/year and move it someplace like CDs, Bonds, or ETFs.
2. His goal is to continue to work. Having a healthy savings account can keep you secure while looking for another job.
Relevant recent thread: https://news.ycombinator.com/item?id=35514464
It's a lot more reasonable to have a goal of, say, having 2 years' of life expenses saved up in case you want to take a faux-sabbatical mid-career. If you're in tech in the US, this is really not hard if you aren't spending extremely lavishly.
Personally, I've been in the position for about 5 years now where I could have ended up mostly retiring if that's what was in the cards. And it's a very liberating feeling even if you don't have to or choose not to exercise it. Makes it far more of a non-event (for you personally) when layoffs come knocking.
For every dollar that comes in, take 10% and stick it somewhere that's hard for you to get your hands on it. Then forget that it exists.
In less than a year, you'll have a year's worth of pay stacked up that way. Then keep doing it, forever.
FTFY
Personal rant: I've been saving up 20-50% of my salary for the last 5 years for a downpayment, and then in the past year 18% inflation hit, interest rate doubled, food price inflation is in top 10 worst in Europe, property prices in increased by 50% in 4 years. My savings obviously cannot keep up with the economy.
I'm glad I wasn't too stringy and spent some money to complete all necessary dental work in the past couple of years (dental is never covered by the insurance here), now I wouldn't be able to afford it.
Oh, and there's also a war in my home country and my family lost almost all of their income (thank god they aren't displaced (yet)), now I'm awaiting a decision from my company whether I get the boot or not. Fun times. I wish I invested in mental health and therapy too, I would still end up broke as I am now but at least I'd have some resilience.
The only real security you have is your own assets and financial discipline.