Coding is not about performing a task! That's what ML is for. Code is about doing the *right* task.
My prediction: as AI makes 777-levels of complexity routine, we will have much *more* code, not less. We will have an explosion of formal languages that, yes, humans will learn.
Musk has no ambition.
A 777 has 2.6 million lines of code *not* because that's what it takes to fly. It's because that's what it takes to lift 370 tons safely from LAX to Heathrow every day without endangering its 400 passengers.