Code reviews are essential, and here's how I review code

Arpit Bhayani

Arpit Bhayani

Oct 24, 2024 • 2 min read


Code reviews are essential, and here’s how I review code written in an unfamiliar language or an unfamiliar codebase

  1. Check for code readability
  2. Check for uniformity in code patterns
  3. Check for basic non-redundancy of logic

Once, these were pointed out, I started asking many questions to

  1. Gather context for the changes
  2. Ensure the correctness of the task it was supposed to accomplish

During the discussion, I try to probe enough to understand things myself (unfamiliar codebase) and challenge the understanding of the engineer. This helps me build the context and familiarity for future code reviews happening in the same codebase.

Once the heavy lifting is done, I take an opinion from someone who knows the language (if possible) to ensure that language-specific features are used correctly and standards are followed diligently.

These pointers seem quite stretched, but given we are unfamiliar with the codebase and language, spending time during initial code reviews means I would be more productive while reviewing other changes happening in the same codebase.

PS: I am not an expert, and these are things I follow, so please take this advice with a pinch of salt.

⚡ I keep writing and sharing my practical experience and learnings every day, so if you resonate then follow along. I keep it no fluff.

youtube.com/c/ArpitBhayani

Arpit Bhayani

Principal Engineer II at Razorpay - building Agent Studio, Ex-staff engg at GCP Memorystore & Dataproc, Creator of DiceDB, ex-Amazon Fast Data, ex-Director of Engg. SRE and Data Engineering at Unacademy. I spark engineering curiosity through my no-fluff engineering videos on YouTube and my courses