Some highly paid professions are likely safe. Think Doctor. Basicically they're a commodity [1] but we kinda like having them around and (cruicially) their work doesn't scale.
Frankly, at some level, software is already a commodity. Some markets have matured and it's increasingly unlikely you'll make a living there[2]. I needed a compass app on my phone the other day, there are a million to choose from, they're all free, and there's no way to differentiate one app that shows North from another.
We are currently in the phase of new platforms, and that helps. I've worked on DOS, Windows, Linux, Web and Mobile. Each platform asks for the existing work to be redone.
Once platforms settle down, once the library of work is big enough, and feature-complete enough [3] then the software development market will become very unvaluable. Itll exist, but it won't be a high-flying job.
[1] I use the term commodity here in the sense that it's interchangeable in use , not that they're identical. Cars are a commodity because they all perform their function (transport) while differentiating on more-or-less irrelevant details (Cup holders). Sure a 2023 car is "better" in a million ways, but a 2012 car does the transport job perfectly well. There was once 50 car manufacturers in a single town in the UK. Today there are a handful globally. It takes a new platform (Tesla) or a new market (China) to make anything new in this space.
[2] outside the odd viral game, which has its 15 minutes of popularity, you can't make money with a soley mobile app. You can make money with the app as an interface to a big backend system, but its the system making money not the app.
[3] in some cases it's already there. How many times are upgrades basically a collection of visual updates coupled with features nobody uses? We fiddle around the edges but most languages are interchangeable. Good luck making money in developer tools these days - novelty is not enough. Yes tool x is better than everything else, but so is tool y, z and a. Sure everyone has their favorite editor, but the reason we can't decide on vi or emacs Is because functionally they both do the editing job just fine.