Just yesterday I was asked if I was worried about losing my job because of AI and I smugly replied that us programmers will be needed even more, as interpreters. This is an excellent article as explanation I'll be sharing!
Another perspective may be - similar to how people were saying the post will go bust when internet came in with email etc. - but it turned out to be the opposite.
Maybe intelligence will simply become commoditized and programming/creating things with it will require even more programmers.