📜 ⬆️ ⬇️

Effective code review: 9 tips from a reformed skeptic

I knew the theory. A code review helps:

Or, it’s just a waste of time. At least, this was my first impression of the review code.

I was a newly released newbie developing plugins for a software company in London.
After some time, I had to provide blocks of identical or similar code. They were supposed to be viewed by an unhappy guy (“He’s the best at this,” my manager said. Not a single good deed ... ( does not go unpunished ) process.
Worse, the code inspections lasted for days, if not weeks. When I received the code back, I could hardly remember how I wrote it. That was not the fault of that guy. He asked for a developer level senor, but got me. He was sick of the mistakes that inexperienced developers make, and reviewing the code was a way to get rid of this disappointment.
Add to this the time lost on synchronizing the branches, switching between contexts ... I was not a fan of this, there were none of them in the rest of the team, as it turned out.
Skipping a few years ahead, I find myself agreeing with Jeff Atwood's tweet:
“Collective review of the code is more you can do to improve your code.”

When I evaluate the past years, I realize that no review of the code was bad. The code review was bad. And, man, we spent it badly.
I learned it the hard way. And, of course, understanding does not come instantly. After a while, I realized that reviewing the code saved me from more than awkward, breaking assembly changes! But after I worked in other places, I gained experience in various and better ways to work. This gave me the opportunity to directly see the benefits of revising the code, which I had not previously recognized. So now I consider myself a reformed skeptic.
So you can avoid such pains: check out our video and then read the tips that will bring you closer to an effective review of the code.

9 tips on reviewing

For all:

For reviewers:

For authors of the code:


Register now for the Kiln Review Code webinar.

Join our next online webinar. It will help beginners learn the basics about code inspections in our product.
We will discuss:
To take a seat, register now .
')
Translator's Note
The text is largely a product advertisement from FogCreek and their webinars. But the text about the code review is not tied to either the product or the workflow they offer. Whatever tool you use, review tips will remain relevant. And, perhaps, they will be useful to someone.
I would be happy to see comments on improving the translation in a personal, and in the text - in the comments to the post.

Source: https://habr.com/ru/post/250489/


All Articles