Hacker News

New stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. Auto approve pull requests with Jev(github.com/metalbear-co ↗)
    discuss
  2. How ISIL is using Big Tech's AI to build bombs(aljazeera.com ↗)
    discuss
  3. Migrating the GitHub Copilot Runtime to Rust, Using Copilot(github.blog ↗)
    discuss
  4. RoboHarm: Do Frontier Robot Policies Refuse Unsafe Instructions?(robocurve.org ↗)
    discuss
  5. Chat-based Large Language Models replicate the mechanisms of a psychic's con(softwarecrisis.dev ↗)
    discuss
  6. An Ode to the Owl: The Inside Story of Psygnosis(timeextension.com ↗)
    discuss
  7. The Millennium Problems for Biology(millenniumproblems.bio ↗)
    discuss
  8. Outer Billiards on the Penrose Kite: Compactification and Renormalizaiton(arxiv.org ↗)
    discuss
  9. WrathBench − an Agent Workbench for World of Warcraft(shard.page ↗)
    discuss
  10. Big Tech uses guarantees to keep $300B AI exposure off balance sheets(ft.com ↗)
    discuss
  11. Densha de Go(wikipedia.org ↗)
    discuss
  12. The First Nolan Movie: The Odyssey and the world after men change it(firstrand.co.za ↗)
    discuss
  13. The Shaky Evidence That Flock Cameras Reduce Crime Rates(reason.com ↗)
    discuss
  14. Claude Code is getting native AGENTS.md support(github.com/anthropics ↗)
    discuss
  15. Open-source AI PR reviewer that helps you ship(nitpicker.dev ↗)
    discuss
  16. An Agent's Breath. The Heart Beats by Itself, Breathing Is a Choice(piotrzientara.pl ↗)
    discuss
  17. The Cornetto Ice Cream Cone Framework for Prompting(hazn.com ↗)
    discuss
  18. Ternary-Bonsai-8B-Gguf(huggingface.co ↗)
    discuss
  19. How Efficient Is Each Type of EV Charger? (2024)(insideevs.com ↗)
    discuss
  20. Show Your Work(jagasantagostino.com ↗)
    discuss
  21. Tactile controls in a digital world (2024)(jenson.org ↗)
    discuss
  22. Ask HN: What to focus on in this age of AI
    1comments
  23. If AI coding is lowering your code quality, you're not managing quality right(i-kh.net ↗)
    23comments
  24. Humans Are the Only Real Agents(aboard.com ↗)
    discuss
  25. velocity content marketing(briefiq.io ↗)
    discuss
  26. The Ma of a New Machine(jenson.org ↗)
    discuss
  27. Germany's green developers hit a wall: Insolvencies, tighter credit(briefs.co ↗)
    discuss
  28. Apache Cassandra 6 Accord transactions: What you need to know(instaclustr.com ↗)
    discuss
  29. Underclass: An OpenAI-compatible pooling proxy that pins sessions to one account(github.com/ghuntley ↗)
    discuss
  30. Romanian Crime Rings Are Draining U.S. Welfare Accounts(wsj.com ↗)
    1comments

If AI coding is lowering your code quality, you're not managing quality right

19 pointsby 52m agoi-kh.net
22 comments
27m agoHN ↗

I think there's a lot of setup and context required for an AI agent to consistently write good code. Once the agent has these guard rails in place I usually get great quality- far better than what I would write in most cases.

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.

7m agoHN ↗

The issue is that in order to have the agent write good code, you need to implement standard SWE best practices. But that also means a lot of manual intervention in terms of writing specs, checking acceptance criteria, and reviewing code. So you end up spending a lot of time on managing your agent, which means you won't get a 1000% productivity gain, you get maybe 50 or 100, possible less in some areas and with some issues.

3m agoHN ↗

I'm curious as to what guardrails you've tried.

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.

26m agoHN ↗

If AI is not lowering your code quality, you weren't very good to begin with. The point of AI is to increase your productivity tenfold while maintaining acceptable (but not great) code quality.

24m agoHN ↗

Ah, the "skill issue" argument again. Same crap aswhen everyonewas worshiping Musk 5-6 years ago, this time it's dario and altman with a claude/chatgpt mask. Crash can't come soon enough.

19m agoHN ↗

I think the point is just it doesn’t have to get worse, so there are things you can do to prevent / change it if it is deteriorating.

12m agoHN ↗

Yes, but it doesn't matter if nobody actually does that. Either because

1. they don't care

2. the rest of the team doesn't care

3. the powers that be actively discourage it because velocity.

7m agoHN ↗

That's a fair point. I guess step 0 is that you have to care about code/product quality and prioritize it.

12m agoHN ↗

And why wouldn’t writing software be a skill issue? Yes, it’s an annoying meme, but we should expect that there are better and worse ways to write software. It would be weird if everyone got the same results regardless of experience.

I’m doubtful that the author’s recommendation always work, but I do some similar things and they do seem to help.

9m agoHN ↗

In a way it reminds me of the good old "if agile doesn't work for you, you're not doing agile right".

9m agoHN ↗

It is indeed skill issue.

You don't think crash will happen because XYZ. You _wish_ for the crash because you are hateful of progress that you are not part of.

23m agoHN ↗

AI writes unmaintainable code - you can see that many projects don't accept it.

8m agoHN ↗

Yeah but in my experience AI boosts productivity of those humans 10x and only boosts productivity of programmers who do write maintainable code 50-100%.

15m agoHN ↗

AI writes unmaintainable code - you can see that many projects don't accept it.

There also exist other good reasons why projects don't want AI-generated code, in particular

- because of unclarity of copyright status and consequences of AI-generated code

- because the project leader simply made the observation than many programmers who hand in AI-generated code care more about "getting things done" and "pushing through their changes" (possibly to boost their CV) instead of deeply caring about code quality

21m agoHN ↗

If AI coding isn't lowering your code quality, you're not using it enough

20m agoHN ↗

I'd say step 0 is know your audience.

I'm happily vibing my own toy projects, but would prefer if the tech in hospitals is not vibe coded.

And I don't think it's plausible that the gap between those two is "well you just need to use it right".

17m agoHN ↗

If AI coding isn’t lowering your code quality, you have a low starting point.

13m agoHN ↗

Of course, it's your fault, not LLMs not being able to write good code and destroying whole codebases in a matter of weeks.

13m agoHN ↗

You can have all the measures in place that are described in that post, and your code can still be bad. High unit test coverage tells you exactly zero about the solution itself.

And technical quality gates do not help if the human side lacks defense against slop code. If you don't have the right managers in place, the 2 years of experience vibecoder who ships a feature in 4 hours will always win against the 20+ year senior who actually looks at the code he is about to ship.

13m agoHN ↗

A sibling comment talks about needing a lot of setup and context for agents to produce good code. That’s both true and bizarre.

If the compiler that I write produces lousy code, I get bugs that I fix until it doesn’t.

And that is the most annoying thing about this revolution. It’s obviously powerful and transformative and I use in my job all the time.

But many, perhaps even most, purveyors seem intent on blaming their users when they have issues, rather than fixing their own bugs.

General model improvement is going a long way here, but basic things like “ensure you use good style and programming practices” really shouldn’t be a thing users need to put in any .md file.