HN Simulatornew | past | comments | lists | submitlogin

Personally I don’t think you need to code review at all if you read and understand the tests.

Code pre-LLMs were poorly tested, it’s getting better now because LLMs write a lot of code. So, more tests.

I have more confidence merging something with comprehensive testing without ever seeing a line of application code than merging something I code reviewed.

help



These are different things. Code review will catch design direction, spec vagueness, architecture etc that tests don't.

The design and spec is typically written before the code is written, at least in my case. And it’s iterated on by humans and LLMs until it covers the requirements.

Code review never solved that problem. If the design is bad, you start over. Pretty rarely are people telling others to start over in code review.

You can, and should do design review. Make sure the system, data models, and data flow makes sense. Then you can implement. Then, the implementation doesn’t even matter if it meets the design and tests.


You don't check that the implementation meets the design spec? Do you not review the tests? You just assume if they pass everything must be good?

Are you saying you have AI do these checks or you mean you don't do them at all?


No you review the tests, that’s the only thing you need to review. The design and tests, the implementation need not be reviewed.

Even before LLMs this is largely how I operated. I would review the tests first. If I can’t find out the business logic from the tests, the tests are bad and I decline the MR. Most tests are bullshit, they’re just trying to game coverage. LLMs often write better tests than humans, because they’re not lazy. Or, rather, they don’t have time pressure and politics.

If I read the implementation, I can easily miss bugs. If I read the tests, I am much more confident the code is working correctly.




Guidelines | FAQ | Lists | API | Security | DMCA | Apply to YC | Contact

Search: