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

  • Posted 1 hour ago by darkLord19
  • 3 points
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.

2 comments

    Loading..
    Loading..