> we had a 10k line lua function that grew through ten thousand point modifications

> It's bad and humans caused it.

LLMs do the same thing. I review the code and interrogate the model about the bandaid fix it applied until the proper architectural solution becomes clear. Then the model implements the correct solution which usually involves some major refactoring.

> LLMs do not go through the struggle of understanding and don't experience the distress of "wtf am I reading?" and don't experience the drive to make things less horrible for the next person.

Of course not. That's the human's job.

And it's not every human either. Way too many humans are actually quite content to ship whatever works then go the hell home. Just a job after all.