Earlier quoted context omitted.
What if you automated your job on your own free time?
Then they get to pay you less because you work fewer hours to do the same job. Or they fire you because they don't need you anymore.
> Or they fire you because they don't need you anymore.
I think people are just assuming that the typical case here is someone automating their job to a degree where they literally don't have to do anything. I suppose that happens sometimes if we are to believe anonymous reddit and stackexchange postings.What actually happens is that regular people who you would not assume are "programmers" start picking up computer skills and employ them in a piecemeal fashion a little bit at a time until eventually their day-to-day work becomes something quite different from when they started out.
This has been going on for at least as long as there has been a computer on every desk. I think "software engineers" should not be so smug to think that everything worth doing is something that they're going to get a chance bid on and then get a project managers or scrum teams to implement.
As for whether the person that does this gets fired or promoted depends on their skills at managing their peers and superiors, and what kind of environment they work in.