<p>If you could predict the types of jobs that would be needed 20 years down the line, you would be everyone’s favorite person.
That said, I don’t think the need for programmers is going to disappear. However, the nature of what programmers do will likely change. For example, it used to be that all programming had to be done at a very low level, where you had to control every aspect of it. Now programming languages are becoming more high level as the lower-level aspects are automated. I think programming will continue to become more high level, but I don’t think we’re anywhere near the point of computers becoming intelligent enough to program themselves.
For a different analogy: think of the ability to code as being like the ability to read and write. It used to be that literacy was a skill that very few people had, and those with the ability were uniquely qualified for certain jobs. That’s the place we are at with programming. Now, it would be unimaginable in our society to be employable or functional without literacy skills. That’s where I think we’re headed with programming. I think at some point everyone will have to have basic computer literacy skills. But just because nearly everyone knows how to write doesn’t make this an obsolete skill for a career on its own; we still need writers today in various fields. It’s the same with programming. Over time, the role will change, but it’s not going away.</p>