this post was submitted on 20 Mar 2026
24 points (76.1% liked)

Programming

26193 readers
182 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 2 years ago
MODERATORS
 

Hey, I want your opinion on code reviews, what is the best way to use them in a professional environment? Pick one of the following and give me your thoughts (from the most forgiving to the most strict):

  1. no code reviews, they are useless
  2. optional code reviews
  3. mandatory reviews on code that is already merged, optional fixes
  4. mandatory reviews on code before merging (like a pull request), with a time-frame for optional fixes (i.e. whether to fix what has been pointed out is up to the author), merge will occur anyway.
  5. mandatory reviews on code before merging (PR) with mandatory fixes.

Of course in open source development with public contributions, you'll often see (5), but I'm not convinced it could work in professional dev.

Edit: I'm talking about a team of 5 mid to senior devs (no junior or interns) working on a 2-3 year project without many security concerns, but feel free to give me your general opinion.

you are viewing a single comment's thread
view the rest of the comments
[–] ChaoticGoodHeart@sh.itjust.works 18 points 2 days ago (2 children)

I've worked for managers that didn't believe in the necessity of code reviews, and some that downright hated them. All of them wrote garbage code, and the codebases were equally awful. Some people just cannot handle even the slightest critique.

If you find yourself on a dev team doing anything other than 5, run, don't walk, and find a new job if you can. If you can't, focus on increasing your knowledge and skills, because no one else there is going to help you.

[–] pinball_wizard@lemmy.zip 4 points 2 days ago

If you find yourself on a dev team doing anything other than 5, run, don't walk, and find a new job if you can. If you can't, focus on increasing your knowledge and skills, because no one else there is going to help you.

Is great advice, which I have followed, and it has served me well!

[–] Gonzako@lemmy.world 1 points 2 days ago

Thank god you specified dev team. I personally just go by ear and I mainly just work alone