|
|
|
|
|
by Attummm
1046 days ago
|
|
Good code reviews are essential for finding bugs, especially those that are hard to spot. They also ensure that the conceptual integrity of the codebase remains intact. Moreover, they allow a developer who is less familiar with the codebase to propose a solution, even if they might not fully grasp the entire context of the project or codebase. This is a significant advantage. However, unfortunately, code reviews can devolve into hazing or become a means to establish power dynamics that shouldn't exist. We should never assume the reviewer knows everything. A productive code review is more of a collaboration rather than a teacher-student relationship. How can we automate issues like using a task UUID as a device UUID within the code? Or addressing an n + 1 problem when another API with batch functionality is available? We can't automate those(yet) |
|
So with any decent system, the weakest link is the people using it. If you have adversarial people on your team, and in my experience, you probably do, sometimes the system surrounding code review is far more important. IE reviewers share the blame(better yet there is no blame shit just gets fixed), and hard rules around being an asshole need to be enforced.
I realize you are describing a healthy work environment. Unfortunately, I've yet to find one. I almost made one once, but a wave of clandestine hires destroyed it and it was time to move on. Pissed off the wrong narcissist...