If your job is/you enjoy writing the code and solving technical challenges then yes this changes very heavily and AI will do this more efficiently than a human.
But if your job is designing systems and implementing solutions and coming up with good code along the way then I don't see AI getting anywhere close to making you obsolete in the foreseeable future.
I personally don't enjoy writing C++ but I really enjoy solving problems.
If your job is/you enjoy writing the code and solving technical challenges then yes this changes very heavily and AI will do this more efficiently than a human.
But if your job is designing systems and implementing solutions and coming up with good code along the way then I don't see AI getting anywhere close to making you obsolete in the foreseeable future.
I personally don't enjoy writing C++ but I really enjoy solving problems.