I don't think ML will ever be able to write code [video]
youtube.com“I think there is a world market for maybe five computers.” - Thomas Watson president of IBM
Yes it may be a long way to reach AI that writes good code. But predictions like this underestimate the factor of time.