what did i read? genuinely? its only a few words, and even that had to be AI written. The topic in the title barely was mentioned.
Human-written. I was trying to be short and straight to the point. LLM-powered rewrites and huge refactors are better done using 1 additional step "convert the code to that represents it best". The simplest example is, for a CRUD app it can be swagger description. The more complex behaviour exhibit the app, the more raw information should be provided. Like ontologies, "A is a child of B" model can derive and enforce…
1. Extract the data representation
Ask the LLM to represent your code as any combination of:
graphs
ontologies
hierarchical state machines
UML process charts
constraints
math formulae
2 Operate on the representations3 Convert representations back to code