Typical conversation between a non-programmer and a programmer about AI:
Won't AI put you out of your job?
It probably won't
Well, can't AI write code much faster and more efficiently than humans?
How would it know what code to write?
I guess you would need to provide it with a description of the app that you want it to make?
So you're telling me that in the future, there will be machines that can generate computer code based entirely on a description of the required functionality?
I guess so?
Those machines are called "compilers", and "a description of the required functionality" is called "a program". You're describing programming.