Cookie Consent by Free Privacy Policy Generator Aktuallisiere deine Cookie Einstellungen ๐Ÿ“Œ Top 5 Blunders Made by Code Reviewers


๐Ÿ“š Top 5 Blunders Made by Code Reviewers


๐Ÿ’ก Newskategorie: Programmierung
๐Ÿ”— Quelle: dev.to

Code reviews are a standard practice in software development. Their purpose is to have another pair of eyes examine the code to catch issues before they affect users and to provide feedback that helps make the code cleaner and easier to understand.

While the goals of code reviews are noble, the experience for many developers is often less than stellar. There are many contributing factors, but one that stands out is how code reviewers approach and conduct code reviews.

Here are the top 5 mistakes I've seen code reviewers make (and I had made myself) that left fellow, often junior, developers discouraged and frustrated with the code review process.

Approving a PR without understanding the change

Many developers approve PRs very quickly, looking at the code only barely or not at all. While the speed matters, this attitude leads to problems:

  • bugs that could be identified during code reviews are missed, reach production, and impact users
  • the quality of the code deteriorates over time, making implementing new features more challenging
  • both the code reviewer and the author miss the opportunity to learn something new from the PR

Proper code review requires time, effort, and, often, additional context. I sometimes realize that a change I started reviewing requires more time than I can afford or that I don't have enough context to understand it fully. If this happens, I will still review the change as best as I can, but I will let the author know that I can't sign off on it.

"If you approve it, you're responsible for it" was one piece of advice I received that completely changed my perspective on carelessly approving PRs.

Unprofessional feedback

Code reviews should be all about code. Sadly, they sometimes become personal attacks with harsh or condescending comments. This kind of "feedback" usually extends beyond code reviews and leads to a toxic team culture.

Even if the code sent for review has multiple issues, comments like: "this code is s**t!" are not helpful. Explaining the problems and suggesting solutions is a much more effective approach. Talking to the author is even more effective.

Too much focus on less important details

Image description
Flooding a PR with nitpicky comments is not good feedback. Not only is it borderline passive-aggressive behavior, but these comments can also drown out ones that raise important issues.

One great example is comments about code formatting. Asking the author to adhere to the Coding Style Guidelines adopted by the team is one thing, but commenting on each single incorrect indentation or misplaced parenthesis is not OK. Fortunately, this entire class of arguments can be easily avoided by integrating a code formatting tool. Not only will the tool end the petty arguments about code formatting, but it will also allow developers to focus on what's important.

(I wrote about this in more detail in this post: The downsides of an inconsistent codebase and what you can do about it.)

Unclear or unactionable feedback

Comments like: "I am sure it can be done better" are not useful. They leave the author clueless about the reviewer's expectations and the improvements they expect. In the best case, the author will ignore the feedback. In the worst case, they will try guessing what the reviewer meant and iterate on the code, often unnecessarily.

From my experience, illustrating comments with code suggestions is one of the clearest and most effective code review feedback.

Delaying code reviews

One of the most common complaints about code reviews is that they significantly slow software development. The most common reasons are:

  • reviewers are not picking up PRs for review
  • reviewers are not responding after the author addressed the feedback
  • changes are flooded with comments on minor issues, and resolving them requires many iterations

Assuming a PR is not intentionally blocked due to a serious concern, delaying reviewing it can be frustrating for the author. Often, reviewers are simply busy with their work and don't have time to review someone else's changes. But this is a double-edged swordโ€”eventually, they will want someone to review their changes, and they shouldn't expect quick reviews if they don't review PRs promptly.

Sometimes, it is a matter of being better organized. Blocking half an hour daily on the calendar for code reviews should help team members move faster.

Thatย being said, if your PRs are not getting reviewed, there may be something you can do about this. Check out my post: 7 Tips To Accelerate Your Code Reviews

๐Ÿ’™ If you liked this article...

I publish a weekly newsletter for software engineers who want to grow their careers. I share mistakes Iโ€™ve made and lessons Iโ€™ve learned over the past 20 years as a software engineer.

Sign up here to get articles like this delivered to your inbox.
https://www.growingdev.net/

...



๐Ÿ“Œ Top 5 Blunders Made by Code Reviewers


๐Ÿ“ˆ 59.15 Punkte

๐Ÿ“Œ 5 Common Cybersecurity Blunders Often Made by Commercial Enterprises


๐Ÿ“ˆ 29.45 Punkte

๐Ÿ“Œ Static code analyzers vs AI code reviewers: Which is Best?


๐Ÿ“ˆ 28.94 Punkte

๐Ÿ“Œ Huawei's UK code reviewers say the company is still crap at basic software security


๐Ÿ“ˆ 25.42 Punkte

๐Ÿ“Œ Weโ€™re hiring: Senior MariaDB Developer / Code Reviewers


๐Ÿ“ˆ 25.42 Punkte

๐Ÿ“Œ Mastering Code Review: A Guide for Reviewers and PR Creators


๐Ÿ“ˆ 25.42 Punkte

๐Ÿ“Œ Mastering Code Review: A Guide for Reviewers


๐Ÿ“ˆ 25.42 Punkte

๐Ÿ“Œ Big breaches, bad blunders โ€“ and good news, too [Chet Chat Podcast 256]


๐Ÿ“ˆ 21.9 Punkte

๐Ÿ“Œ Big breaches, bad blunders โ€“ and good news, too [Chet Chat Podcast 256]


๐Ÿ“ˆ 21.9 Punkte

๐Ÿ“Œ Glassdoor pushes back against moves to identify anonymous reviewers


๐Ÿ“ˆ 21.9 Punkte

๐Ÿ“Œ The opsec blunders that landed a Russian politician's fraudster son in the clink for 27 years


๐Ÿ“ˆ 21.9 Punkte

๐Ÿ“Œ Internal 'Set Of Blunders' Crashed Australia's Census Site


๐Ÿ“ˆ 21.9 Punkte

๐Ÿ“Œ Data Entry Blunders Force Air Asia Pilots To Land in Melbourne Instead of Malaysia


๐Ÿ“ˆ 21.9 Punkte

๐Ÿ“Œ SAP cleans up more than a dozen troubling CRM security blunders


๐Ÿ“ˆ 21.9 Punkte

๐Ÿ“Œ Monday review โ€“ Adobe botches, Apache bleeds and Equifax blunders


๐Ÿ“ˆ 21.9 Punkte

๐Ÿ“Œ Super Mario Odyssey Has Reviewers Jumping for Joy


๐Ÿ“ˆ 21.9 Punkte

๐Ÿ“Œ iPhone X Delivers on Apple's Promises and That's Plenty, Say Reviewers


๐Ÿ“ˆ 21.9 Punkte

๐Ÿ“Œ Internal 'Set Of Blunders' Crashed Australia's Census Site


๐Ÿ“ˆ 21.9 Punkte

๐Ÿ“Œ Data Entry Blunders Force Air Asia Pilots To Land in Melbourne Instead of Malaysia


๐Ÿ“ˆ 21.9 Punkte

๐Ÿ“Œ Hey, you. App dev. You like secure software? Let's learn from Tinder, Facebook's blunders


๐Ÿ“ˆ 21.9 Punkte

๐Ÿ“Œ Honda, Universal Music Group Expose Sensitive Data in Misconfig Blunders


๐Ÿ“ˆ 21.9 Punkte

๐Ÿ“Œ Alleged Vault 7 leaker was busted because of basic security blunders


๐Ÿ“ˆ 21.9 Punkte

๐Ÿ“Œ Bethesda blunders, IRS sounds the alarm, China ransomware, and more


๐Ÿ“ˆ 21.9 Punkte

๐Ÿ“Œ Apple Limits Lengthy iPhone X Testing for Most Reviewers


๐Ÿ“ˆ 21.9 Punkte

๐Ÿ“Œ Sony Blunders By Uploading Full Movie To YouTube Instead of Trailer


๐Ÿ“ˆ 21.9 Punkte

๐Ÿ“Œ If you wanna learn from the IT security blunders committed by hacked hospital group, here's some weekend reading


๐Ÿ“ˆ 21.9 Punkte

๐Ÿ“Œ WhatsApp, Telegram Coding Blunders Can Expose Personal Media Files


๐Ÿ“ˆ 21.9 Punkte

๐Ÿ“Œ Human reviewers are looking at Amazon Cloud Cam footage


๐Ÿ“ˆ 21.9 Punkte

๐Ÿ“Œ GoPro Max 360 Wins Reviewers' Plaudits


๐Ÿ“ˆ 21.9 Punkte

๐Ÿ“Œ Cache flow problems continue for Intel: Yet more data-leaking processor design blunders discovered, patches due soon


๐Ÿ“ˆ 21.9 Punkte

๐Ÿ“Œ Many organizations taking disciplinary action over cybersecurity blunders


๐Ÿ“ˆ 21.9 Punkte

๐Ÿ“Œ android apps that want access to your call and sms data now have to pass muster with googleโ€™s team of reviewers.


๐Ÿ“ˆ 21.9 Punkte

๐Ÿ“Œ android apps that want access to your call and sms data now have to pass muster with googleโ€™s team of reviewers.


๐Ÿ“ˆ 21.9 Punkte

๐Ÿ“Œ What reviewers are saying about Surface Pro 7 and Surface Laptop 3


๐Ÿ“ˆ 21.9 Punkte











matomo