Ironically, the second someone invents AI, every programmer will be out of a job!
(So lets enjoy it while we can!)
(So lets enjoy it while we can!)
More likely, there would be a gradual transfer of control to increasingly sophisticated AIs, paralleling our current/past move to higher-level languages.