Let’s assume that in 10 years, AI has advanced absurdly, insanely fast, and is now capable of doing everything a Senior SWE can do. It can program in 15 different languages, 95% accuracy with almost no mistakes, can create entire applications in minutes, and no more engineers or SWEs are needed… What will all the devs do? Do they just become homeless? Transition to medical field, nursing? Become tradespeople like plumbers, HVAC?
Retire. All I ever wanted to be was a programmer. If I can’t do that anymore I’ll just retire. I’m saving/investing every penny I can just in case.
Same. If I can retire before my job is irrelevant, I’ll work on my own projects on my own terms. If I don’t, at least I have a nice pile of assets and can coast with another job.
That said, I don’t think people like you and I will have problems, because we’ll adapt. It’s the “programming is just a job” crowd that would have a lot of issues.