My advice: Have one or more side projects going all the time. If you get laid off, immediately start doing a startup, open-source project, or volunteering full time. A year of unemployment? Lonely, depressing, and not good on a resume. A year of launching an unsuccessful venture? Running coding classes for the underserved? Focusing full-time on contributing to pytorch? That's a lot better, both at the time and in ret…
This is terrible, possibly toxic advice. Software devs are people too. They burn out, take time off to travel, reflect, take care of family, or just down on their luck being unemployed. The only advice I'd consider paramount is to take stock of themselves financially and mentally, to assure themselves that they can take on the chaos and uncertainty that follows. Honestly, if someone showed up with a gap in their resu…
Hah, and you called gp's advice toxic! Taking stock if your financial well-being after being laid off is too late. I fear your advice (take time off) may be toxic - depending on circumstances. My advice is this: as a general rule, avoid interviewing while desperate. Getting an offer generally takes longer than one might think, so interview early and often, before you get near the end of your mental/financial runway.