DEV Community

Cover image for The Golden Rules of Code Review Etiquette, as explained by teeny tiny bunnies
Ashley Kolodziej
Ashley Kolodziej

Posted on • Updated on • Originally published at ashleykolodziej.com

The Golden Rules of Code Review Etiquette, as explained by teeny tiny bunnies

Inspired by this #DevDiscuss on Twitter:

This is the advice I gave folks in my department when starting our code review process up, and three years later, it's still going strong.

Bunny gifs are critical to the messages that follow and are included here for improved understanding of the rules.


Tiny gray rabbit sitting inside in a one cup measuring cup. The ears are extra smol.

Keep your review requests small and focused.

This helps your reviewer get feedback to you in a timely manner.


Medium sized tan rabbit binkying on a mattress. This bun has the energy.

Try to get to a review the same day it is requested.

Most folks depend on code for upcoming meetings, releases, and to keep moving on our ideas. Don’t let review requests sit.


Small brown rabbit being showered by human. The bun looks confused and uncomfortable.

Approve or request changes, but never comment only.

Comments don’t give the author clear direction on whether or not they can move forward. They’re great for discussion, but it’s important to be clear about next steps too.


Teeny tiny brown rabbit tries to escape a coffee mug it is stuck in by wiggling back and forth. A white rabbit is nearby, completely ignoring the brown rabbit.

Be clear about what needs addressing.

If you request changes, be clear about what types of changes are required for approval, and what aren’t, in the overall description for your review.


White rabbit with floppy ears hops down hallway, carrying a soft rabbit stuffed toy.

Review with teaching in mind.

Code review is about helping each other and sharing our knowledge. Phrase your feedback and ideas in a way that helps others around you to learn more about your area of expertise! Don’t make assumptions or get frustrated. Help your coworkers improve instead.


Teeny tiny baby white bunny nuzzles into an opened hand. The ears are roughly the size of your thumb.

Review with empathy.

Deadlines are hard. Being new is hard. Learning is hard. We are all working to be the best people we can be, so take extra care to call out the cool ideas you see and be positive with your feedback. Use fun and appropriate emoji liberally! 🐰 Be aware of your voice and tone - humor is easily misinterpreted in text.


Dark gray rabbit runs up and rudely surprises unsuspecting medium gray rabbit from behind, causing the gray rabbit to hop directly into the air.

Review with common sense.

If you get a review the same morning as a meeting or the week of launch, approve it, but leave your feedback anyway for when the designer or developer won’t be scrambling to improve things. Be deliberate about what’s okay to leave for later.


Medium rabbit runs all over bed, throughout room, and straight out the door.

Be aware that changes introduce bugs.

Each change that has to be made can impact the stability of the code. Keep this in mind as you review around tight deadlines.


Two teeny tiny fluffy white buns. One falls over backwards, as if it is absolutely, positively over this nonsense.

Don’t require perfection.

Your job as a reviewer is to act in the best interest of the code and the people you’re working with. Early on, asking someone to refactor repetitive or overly complex CSS or JS is a good call. During QA, it is not.


This list was taken from a code review training I ran for my department a few years ago. Check out the full training on Google Slides.

Top comments (1)

Collapse
 
camelcaseguy profile image
Shubhendra Singh Chauhan • Edited

Great tips @ashleykolodziej 👏

let's suppose the code is large and cannot be reviewed in one go; then there are high chances of missing out on issues during manual code review even if you try to do it by breaking the code in parts. So for such cases, you can try out Automated Code Review Tools.