I agree that there is cosmic karma when it comes to software engineers being automated out of jobs, but I don't agree with the tired idea that a bunch of new jobs are going to magically appear to replace what is lost.
Machines with superior cognition to humans is completely unchartered territory and fundamentally changes everything. Assuming an industrial-revolution-esque new set of jobs to materialize is naive copium.