Skip to content
Discussion options

You must be logged in to vote

A simple rule that works well in most teams is review the code, not the person.

A pattern I often use is:

Observation → Suggestion → Reason

Example:

I noticed this method is doing both validation and database logic. It might be worth separating those concerns into different functions because it would make testing and maintenance easier.

When the code is genuinely problematic, it's still better to focus on the impact, not the developer:

This implementation works, but it could become hard to maintain as the logic grows. Splitting it into smaller functions might improve readability and make future changes safer.

To separate “wrong” vs “personal preference”, many teams follow this rule:

Wrong…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@discovicke
Comment options

Answer selected by discovicke
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Pull Requests Propose, review, and discuss changes to a repository's codebase Question Ask and answer questions about GitHub features and usage Welcome 🎉 Used to greet and highlight first-time discussion participants. Welcome to the community!
2 participants