Hacker News new | ask | show | jobs
by nzach 338 days ago
> won’t let the program even compile if there is an unused variable

That is a really big advantage in the AI era. LLMs are pretty bad at identifying what is and what isn't relevant in the context.

For developers this decision is pretty annoying, but it makes sense if you are using LLMs.

1 comments

Yep, that's why I like strict tooling with LLMs (and actually real people as well, but that's a different conversation :D)

When you have a standard build process that runs go vet, go test, golanci-lint, goimports and compiles the code you can order the LLM to do that as the last step every time.

This way at the very least the shit it produces is well-formed and passes the tests :)

Otherwise they tend to just leave stuff hanging like "this erroring test is unrelated to the current task, let's just not run it" - ffs you just broke it, it passed perfectly before you started messing with the codebase =)