I got 2 years covered before starting this path (not all with savings, there is additional income).
(If you go through a recruiter, you might be in a better position, because sometimes recruiters want you to invoice weekly and sometimes they pay more or less on receipt of the invoice. And sometimes they don't, of course.)
It comes down to have the savings, but as well to have low living expenses or otherwise lifestyle in a way where you can downgrade it when needed.
During that time app stores were a relatively new thing, so the products I was developing were apps. They started making a decent revenue after 2 years if I remember right. The first year I didn't make about any money. I had very low-cost lifestyle, and cheap rent in a tiny apartment, which helped a lot. If I would have kids or some expensive hobbies it would have been much, much more difficult.
As a developer it is quite easy to find contracting/freelancing gigs if you need money quickly. I don't know in what kind of business environment this guy lives, but I've never felt that those with programming skills need to stress about savings that much, because there is so much short-term work available if you want it. Of course it is not the kind of work that many would want to do, but it pays the bills.