> And left to their own devices, the code they write might be utterly unreadable and unmaintainable
With respect, I think this is soon going to be considered a legacy view. Humans invented coding patterns so that other humans could maintain the code. AI coding agents don't have our restricted ability in this respect and can happily understand and rewrite what humans consider complete messes of code bases.
They will write code in a way that they understand and over time they'll get better and better at writing and maintaining large codebases in a way that suits them best.
You only have to care if a human needs to read and modify the code by hand, and that won't be the case.
I know a lot of coders hate this, but in my opinion, this is just how it will be.