frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Ask HN: How did you write code on restricted hardware?

2•diselody•1h ago•3 comments

Ask HN: GitHub employees what's going on? Why?

319•sharts•3d ago•260 comments

Qwen3.8 Fetches Weird URLs

4•Luker88•3h ago•0 comments

InstantDB Is Shutting Down

6•redindian75•3h ago•0 comments

Ask HN: How do you review and validate LLM generated code?

4•darkLord19•4h ago•2 comments

Are you good at AI, or just using it?

8•ppezaris•4h ago•7 comments

Ask HN: One SSH key or many SSH keys?

3•htunnicliff•5h ago•3 comments

Ask HN: Alternatives to GitHub

639•dhruv3006•3d ago•430 comments

Google Cloud us-west1 down

11•anurag•6h ago•5 comments

Ask HN: No Path from Techie to Management?

5•seeking_gruntle•7h ago•10 comments

Ask HN: Is AI the New Spreadsheet?

5•Gshaheen•7h ago•4 comments

Ask HN: Do you automate your prospection or doing hand made?

3•mathieu_aithos•7h ago•0 comments

Ask HN: I've quit six systems for tracking my illness. What works?

52•Abh1Works•5d ago•87 comments

Tell HN: Cloudflare silently injects its analytics when you switch nameservers

653•stagas•4d ago•202 comments

Is this AWS RI/SP simulation engine interesting / valuable?

2•Exstratus•9h ago•1 comments

Idea to reduce AI token use at large orgs

3•mgav•10h ago•0 comments

Algorithm Interview: a conversation between two parrots

3•dersoverflow•10h ago•0 comments

What I learned building an AI applic

2•simondukr•4h ago•0 comments

Ask HN: How to engage users in an open source project and when to stop?

2•melenaboija•5h ago•0 comments

There are 67 items to manually delete in Google My-Activity

2•whyagaindavid•15h ago•0 comments

Ask HN: What's the endgame of the AI comments buried in every post?

14•elar_verole•1d ago•13 comments

Ask HN: Has anyone shipped a self-modifying application with LLMs?

10•ex-aws-dude•1d ago•12 comments

You've reached the end!

Open in hackernews

Ask HN: How do you review and validate LLM generated code?

4•darkLord19•4h ago
It's become very fast to generate code nowadays, but how do you review and test all of it?

Every time you ask a model to review some piece of code, it comes back with different "findings". So, you still have to filter through the noise of their findings to get to actual defects.

And if you try to do the full review manually, then it might take more time to just understand the code than writing it yourself from the beginning.

As for testing, you can ask the LLM to write the tests, but you can't be sure if the tests actually assert the expected product flow or just write pass/fail tests for a piece of logic.

I would like to know if you have any workflows, strategies, or tricks.

Comments

fuzzfactor•4h ago
If you can't at least validate your code as "easily" and thoroughly as you could before, I would think you have problems that you never had before.
verdverm•4h ago
1. I don't have the agents write the code handsfree, I'm involved in the process so I know what's actually there

2. review/validate, yes, this still requires you getting into the guts, ai does not write good code, HITL is very very important

3. test coverage reports help improve tests, separate test writing from code writing so they do not modify the code to pass the test or make writing them easier. This is a place where I believe Go really shines in the agentic era, not that it didn't shine to me before, it was designed in the service of software engineering and why it lacks fancy PL features (or lacked for so long)

4. Review, yeah, that's a thing, I actually think it good. You have to put work into your PR review agent. It should see all the prior commentary from the PR along with the diff. Tell it to summarize those which have remained unaddressed in a single comment, to ignore defects/comments which have already been resolved. Using different models and finding different defects is a good thing imo