r/ExperiencedDevs • • 3h ago

Experienced Devs Weekly Win Thread: A weekly thread for sharing positive experiences

8 Upvotes

This thread is specifically for sharing "wins". I.e. the opposite of our Tuesday venting thread.


r/ExperiencedDevs • • 20h ago

AI/LLM How do you review code changes that Claude Code wrote during a session?

0 Upvotes

Let’s say that I need to fix a bug or build a new feature or make a technical enhancement in a codebase (or a handful of related codebases).

I start off with an initial prompt, followed by a few back and forths and eventually end up with a slice of code changes made by whatever harness I’m using (i.e. Claude Code).

  1. I can read the changes line by line.
  2. I can ask Claude Code to hold my hand and help me understand what it just wrote. This usually results in Claude breaking up the changes into smaller digestible chunks along with commentary on each chunk.
  3. Or I can use a systematic approach where i start with the most critical parts of the code changes. For example, if the change is to add a new filter for a hotel booking system such as number of children in the group, i would start with the search query itself, checking that rooms are matched on total occupancy (adults plus children) and that an existing search with no children param still returns exactly what it did before.

My goal is to review the code changes as fast as possible by trading off attention to less important parts of the change.

In my opinion #1 is the slowest. #2 is good but I’m worried that with this approach the review will be too influenced by the session that generated the code. I want the review to be as independent and detached from the session as possible (ok while writing this sentence i realized that I can just use a fresh session to do the review. But then i trade off all the meaty context from the original session). #3 is good but I don’t know a system that works for all cases.