Programmer will be the last job, but most programming jobs will be a part of the first wave to go. I can't tell you how many days I've felt like my job (wire up this API by googling then massaging a code sample) was such an obviously mechanical process than the AI needed to do it was not significantly more advanced than where we are now. I do not expect most of these jobs to last another two decades (at least by then ageism will have pushed me out anyways).
I wonder how many programmers shouted doom and gloom when the first assembly language was created, when the first compilers came to take their jobs, or when the first framework stole their work?
Don't complain about boring, tedious boilerplate being removed, the removal just frees up our time for more interesting work.
The difference is that the market for different kinds of software products grew massively in the timeframe you're referencing, as did the complexity of software we were capable of creating. I don't expect these trends to continue. There will always be new technology to program for, but if automation takes over the gruntwork of development, which is the vast majority of it, market or complexity growth will not save it.
> Programmer will be the last job, but most programming jobs will be a part of the first wave to go.
No, because the first wave of white collar jobs to go has already been happening, and it is mostly middle management. (I suspect the next wave will be a lot of domain-specialized professionals in research/analytical roles -- but not so much solution design and implementation -- roles.)