logoalt Hacker News

aka-rideryesterday at 9:11 PM2 repliesview on HN

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 <something> 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 that "B is a parent of A", and so on.

On top of that, I write that Fable is reasonably cheap if one uses it solely for agent orchestration.


Replies

UltraSaneyesterday at 9:27 PM

I found this part to be interesting/clever:

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 representations

3 Convert representations back to code

show 2 replies
brazukadevyesterday at 9:51 PM

honestly it is hard to believe that seeing your replies and this heading: "The secret sauce".

Giving the benefit of doubt, we all might be writing a bit like claude nowadays.

If that is the case, I'd recommend reviewing the content before publishing to see if it sounds like a LLM.

Or if you are trying to create "better" AI slop and think that is enough to say the text is human-written, don't do that, just say it was AI-generated or assisted.

show 1 reply