logoalt Hacker News

fishtoaster • today at 8:40 PM • 1 reply • view on HN

I think first-principles thinking is a great approach, and it's how we started too. I think that, historically, code review accomplished a few things:

1. Checking for correctness

2. Broadcasting changes (both technical and product) from the author to the team

3. Enforcing norms from the team (or at least the reviewer) to the author

If you look at a lot of discussion of code review even from before AI, you'll find a lot of people arguing that code review was rarely good for #1. Now, adversarial AI review accomplishes that better than most humans and a thousand times faster.

I'd also argue that #3 is toast as well. Linters and static analysis tools removed the need to enforce a lot of low-level norms years ago ("add a space here", "avoid useEffect", etc), and AI reviews do a good job of enforcing high-level constraints ("we already have a library for that", "this logic should live one module over").

So the main value of code review now is #2. Some approaches we've tried to achieve that with less/no code review:

- An automated slack digest of everything that shipped today, with important ones called out

- Only PRs that touch a (ever-shrinking) list of high-impact files (eg the api spec or the db schema) need human review

- Weekly in-person demo meetings and regular in-slack gif demos to showcase product changes we're making

In terms of rollout, though... at each step we've all worried that less review will lead to a cascade of technical debt and bugs. And each time we've taken the leap, we've found that the sky hasn't fallen and things still work, we're just faster.


Replies

JambalayaJimbo • today at 9:17 PM

You are ignoring a couple more benefits of PRs. Maybe you would fold these into your existing list, but these are meaningful differences:

1. Correctness checking = there are two different kinds of correctness in play. Yes, while LLMs are absolutely better at checking for things like bugs, syntax errors, "code smells" -- they are not omniscient and will sometimes be missing crucial business context. _Especially_ in an environment where a business is rapidly prototyping solutions with quickly changing priorities day-to-day. Which is exactly what LLM fuelled development will lead to more of!

2. Enabling non-authors to stay in-proximity to the diff. A non-author is more incentivized to understand how a diff works if they share some accountability in the diff's rollout. Rather than some Slack digest no one will read.

3. Allowing the author and non-authors to communicate back and forth about the changes before they actually land. Allowing them to communicate specifically in proximity to the diff. Much of this communication can also be done in meetings, design docs, Slack, etc - but I would argue that the diff is the absolute best place to do this. _Especially_ when the diff is so easy to generate with AI. When generating the diff gets easier, we no longer need as many meetings to ward off wasted investments.