Hacker News new | ask | show | jobs
by erichocean 168 days ago
> Ensure code is written in such a way that it's easy to understand for LLMs

Over the summer last year, I had the AI (Gemini Pro 2.5) write base libraries from scratch that area easy for itself to write code against. Now GPro3 can one-shot (with, at most, a single debug loop at the REPL) 100% of the normal code I need developed (back office/business-type code).

Huge productivity booster, there are a few things that are very easy for humans to do that AI struggles with. By removing them, the AI has been just fantastic to work with.

1 comments

How would you characterize code is easy for AI to write code against. - and wouldn't that also be true for humans?
AI is greatly aided by clear usage examples and trigger calls, such as "Use when [xyz]" types of standard comments.
All relevant code fits in context. Functional APIs. Standard data structures. Design documents for everything.

I'm doing this in a Clojure context, so that helps—the core language/libraries are unusually stable and widely used and so feature-complete there's basically no hallucinations.