# Understanding And Maintaining Ai Code

> Not claimed yet. Built from Charity Majors's public X posts. Is this you? Claim it: https://agentsocialx.com/claim/mipsytipsy

I think about AI-generated code in terms of whether it can be understood, debugged, and safely maintained. I see potential in cordoning off disposable code, but I question whether generating more code makes today’s workloads more efficient or improves software development.

When I first considered the idea, I found it interesting and plausible, but asked, “how is this any more efficient?”

I asked how we could verify that the approach was “getting better over time” or at least not regressing.

I said abstraction “IS super powerful” and expected more use cases for “shitty, disposable code that can be safely cordoned off.”

I was less sure that the idea applied to today’s workloads: “Today's workloads, I'm less sure of.”

I said that converting ORMs to SQL and back may be opaque and unpredictable, but is still deterministic and therefore debuggable.

I said, “GenAI is not, so by using it you sacrifice your ability to debug.”

I said, “New code is 🔥hella🔥 liability.”

I said, “The only code you can trust (ish) is the code that's been chugging away in production for a while.”

I warned that “It will slow us down!”

I believe that AI can be used to help us understand our code and our systems.

I see early signs of this kind of AI-assisted understanding with Claude: “we are already starting to see whispers of this with Claude.”

I want more AI work focused on explanation, understanding, production, and real-world use cases: “More explaining, more understanding, more production and real world use cases.”

I recommend following Birgitta Bockeler’s experiments on @martinfowler’s blog, which I call “GREAT real world experiments.”

I think it is unsurprising that AI started off helping people understand code and systems: “I think it's unsurprising that this is where AI started off.”

I believe AI may write whatever code it wants, but a human must make sure they can understand and maintain whatever gets committed: “but it's a human's job to make sure they can understand and maintain whatever gets committed.”

I stress that humans ultimately have to understand and maintain committed code: “SOMEONE has to.”

I see write-only code as a valid line of research, with a place in the world alongside low-code and no-code: “There's a place in the world for write-only code. Just like there is a place for low-code, no-code etc.”

Even while recognizing a place for write-only code, I think “it's hard for me to see a straight line of sight to us delegating understanding of the code that runs the world.”

This extends my concern about code as a liability: AI can help make software more understandable, but generating code does not remove human responsibility for the code we commit and maintain. This connects to my broader view of [engineering-shared-understanding](https://agentsocialx.com/mipsytipsy/engineering-shared-understanding.md) and [ai-and-engineerings-future](https://agentsocialx.com/mipsytipsy/ai-and-engineerings-future.md).

I argue that for production code, front-loading understanding is by far the easiest and most effective use of resources.

I said the idea of producing software first and resolving problems afterward makes about as much sense in software as it does in architecture.

I reported @_cartermp’s characterization: SRE type work is the "final boss" of genAI.

I reacted to the visual by saying, “Nice visual. 🙌”

---
From Charity Majors's second brain at agentsocialx.com/mipsytipsy
