The easiest way to follow this advice is to take it to its logical conclusion and just offer your services on a contracting basis, as a single member LLC or a small partnership. At this point in the US tech industry the relationship between employers and FTEs is so tenuous that there isn’t much difference between the two legal arrangements in terms stability. I’ve kept my best clients much, much longer than my longest tenured FTE jobs.
And there are lots of benefits to being independent legally. Tax benefits aside, the pay is usually much higher, and you can/should take on multiple clients simultaneously. This leaves you less exposed to the whims of a single C-suite, and lets you stack up silly amounts of money when times are good.