Well, I never said it was easy.
To elaborate more, it is incredibly important to have contingency plans in place, to prevent exactly this sort of situation from happening. One of the first things I did when I started working professionally was to have enough liquidity to last at least a year, which I was able to do only after 3 years of saving aggressively. Which really came in handy after I was laid off a job and had to spend 3 months looking for another one.
I really don't understand how one can get married, have kids and not have such plans in place? IMO it seems kinda irresponsible, especially if one is working in tech, where saving money is much easier than in other professions.