If AI coding is lowering your code quality, you're not managing quality right
Thread
Unofficial Hacker News client; not affiliated with Y Combinator.
If AI coding is lowering your code quality, you're not managing quality right
Unofficial Hacker News client; not affiliated with Y Combinator.
fishfasell · · focus · HN ↗
I think where things get dicey is being able to write in any language. I write and review code in many languages and frameworks I'm not fluent in, so it's hard for me to distinguish between working code and great code. I can spot when the fundamental logic is wrong, but when it comes to "best fit" choices I'm clueless.
this_user · · focus · HN ↗
beezlewax · · focus · HN ↗
user43928 · · focus · HN ↗
At work, with a team and code reviews, the 50%-100% figure seems much more likely.
This can probably move towards the more spectacular productivity gains as the AI's output becomes more reliable, people realize this, and less time is spend on code review and cleaning up the output.
lolakutty · · focus · HN ↗
The thing is, if you follow SWE best practices indiscriminately, then you ll have a shit code base in no time.
There is no silver bullet, and no replacement for experience and mindfulness.
bigstrat2003 · · focus · HN ↗
kuczmama · · focus · HN ↗
This is something I have been trying to get right as well. I've attempted to use lots of linting and things like strong typing, duplicate checks, cyclomatic complexity, and robust tests. However, I still happen to find issues, which requires me to look at the code (at least at a high level)
For example, I can say "Don't repeat yourself, and don't re-write helper functions" and I will even have a duplicate linter check, but inevitably the LLM will always want to re-write a similar yet slightly different helper function. Like it will always want to re-write something small like a trim() or a toString() function in every file.
esprehn · · focus · HN ↗
I have better luck telling it positive things rather than lots of "never do X" style things.
kuczmama · · focus · HN ↗
"Never re-write a helper function" vs "Always search for helper functions before writing one" the "never... " one doesn't tell the LLM what to do, so it would have to make the logical leap from not re-writing to knowing that it should search. While it's a minor leap to make in isolation, I suppose stacking many negative rules in an AGENTS.md would assume that every time it will always make that logical conclusion on what to do.
bucket2015 · · focus · HN ↗
But if I add a separate post-implementation pass to "find and fix X" by the agent, it'll usually find and fix the issues.
So I've started doing it for everything from naming conventions to duplicate code to other problems. It does cost more tokens, but now I get less frustrated at having to fix basic issues in the PRs.
ytoawwhra92 · · focus · HN ↗
It's worth reflecting on why these things are important to you and whether they remain important in an agent-developed codebase.
sevenseacat · · focus · HN ↗
ytoawwhra92 · · focus · HN ↗
nicce · · focus · HN ↗