The issue isn't losing my job. Many of us could deal with that by simply finding another similar job in the same (coding) industry. The issue is losing the entire industry.
That thing you spent years becoming good at? Getting paid lots of money for? Oh, we killed it. Start over and pick something else. You probably won't be paid well, if you can even find anything, because you're starting from ground zero and competing with all the other people flooding the job market. Oh, and yes, it'll require massive life adjustment on your part. Good luck!