I've been laid off. It was fine because software is literally the most marketable skill in the world.
Edit: But also, this was a pre-profit VC-backed company. If those companies can't lay people off, it's not like you make good money with more job security. Either the company just has less runway (so I still lose my job, just later and with everyone else) or they adapt by hiring fewer people at lower salaries.
> software is literally the most marketable skill in the world.
I see you haven't been in the current job market.