Remix.run Logo
CharlieDigital 4 days ago

Clean code still matters.

If it's easier for a human to read and grasp, it will end up using less context and be less error prone for the LLM. If the entities are better isolated, then you also save context and time when making changes since the AoE is isolated.

Clean code matters because it saves cycles and tokens.

If you're going to generate the code anyways, why not generate "pristine" code?. Why would you want the agent to generate shitty code?

WillAdams 4 days ago | parent [-]

Yes, but the problem is the advocate for it, and the text on it arrived at the correct conclusion using a bad implementation/set of standards.

c.f.,

https://github.com/johnousterhout/aposd-vs-clean-code

and instead of cleaning your code, design it:

https://www.goodreads.com/en/book/show/39996759-a-philosophy...