Most likely the role of "programmer" will go away as we conventionally know Anyways, we have evolved a lot like from assembly language to using npm packages and we are going to see the next evolution.
On inability to solve hard problems, I think we are going to tackle even harder problems in future with AI in our side, just like corporations manage to handle more complex problems than an individual.