<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Nalaka Sampath</title>
    <description>The latest articles on DEV Community by Nalaka Sampath (@nalaka_sampath_72181287cf).</description>
    <link>https://dev.to/nalaka_sampath_72181287cf</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3164554%2F772c09ae-57fe-445b-81a8-6ad70b707669.jpg</url>
      <title>DEV Community: Nalaka Sampath</title>
      <link>https://dev.to/nalaka_sampath_72181287cf</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/nalaka_sampath_72181287cf"/>
    <language>en</language>
    <item>
      <title>How Code Reviews Made Me a Better Engineer</title>
      <dc:creator>Nalaka Sampath</dc:creator>
      <pubDate>Thu, 15 May 2025 02:57:11 +0000</pubDate>
      <link>https://dev.to/nalaka_sampath_72181287cf/how-code-reviews-made-me-a-better-engineer-dmo</link>
      <guid>https://dev.to/nalaka_sampath_72181287cf/how-code-reviews-made-me-a-better-engineer-dmo</guid>
      <description>&lt;p&gt;&lt;strong&gt;"Great engineers write code. Exceptional engineers review it."&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;When I first started my journey as a developer, I saw &lt;strong&gt;code reviews&lt;/strong&gt; as a formality - a box to check before merging a pull request. Fast forward to today, as a Senior Software Engineer, I can confidently say that &lt;strong&gt;code reviews are one of the most valuable growth tools in our profession&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Here’s how code reviews have shaped me into a better engineer - and how they can do the same for you.&lt;/p&gt;

&lt;p&gt;🔍 1. I Started Thinking Like a Reviewer&lt;/p&gt;

&lt;p&gt;Writing code is one thing. Reading and reviewing someone else's code forces a different mindset - you look for:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Readability&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Security&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Performance&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Edge cases&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Test coverage&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Over time, I began to &lt;strong&gt;write my own code as if I were reviewing it later&lt;/strong&gt;. This improved my &lt;strong&gt;clarity&lt;/strong&gt;, &lt;strong&gt;naming conventions&lt;/strong&gt;, and &lt;strong&gt;modularity&lt;/strong&gt; significantly.&lt;/p&gt;

&lt;p&gt;🧠 2. I Learned from My Mistakes (and Others’)&lt;/p&gt;

&lt;p&gt;Every code review is an opportunity to learn - whether you're giving or receiving feedback.&lt;/p&gt;

&lt;p&gt;Some of my key lessons came from reviewers who:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Suggested better &lt;strong&gt;LINQ queries&lt;/strong&gt; in C#&lt;/li&gt;
&lt;li&gt;Pointed out &lt;strong&gt;SQL injection risks&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Recommended using &lt;strong&gt;design patterns&lt;/strong&gt; like Strategy or Repository&lt;/li&gt;
&lt;li&gt;Flagged &lt;strong&gt;inconsistent exception handling&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Reading &lt;strong&gt;others’ PRs&lt;/strong&gt; also exposed me to new ideas and styles. I started bookmarking great code snippets for future use.&lt;/p&gt;

&lt;p&gt;🤝 3. I Got Better at Communication&lt;/p&gt;

&lt;p&gt;Giving feedback in a code review is a soft skill. Early in my career, I’d write things like:&lt;br&gt;
“This is wrong.”&lt;/p&gt;

&lt;p&gt;Now, I phrase feedback constructively:&lt;br&gt;
“Would it be clearer if we extracted this logic into a separate method for readability?”&lt;/p&gt;

&lt;p&gt;Being &lt;strong&gt;respectful and collaborative&lt;/strong&gt; made my feedback more effective - and helped build trust in the team.&lt;/p&gt;

&lt;p&gt;🔄 4. It Reinforced Team Standards&lt;/p&gt;

&lt;p&gt;Code reviews help ensure everyone follows &lt;strong&gt;coding standards&lt;/strong&gt;, &lt;strong&gt;naming conventions&lt;/strong&gt;, and &lt;strong&gt;architectural decisions&lt;/strong&gt;. &lt;/p&gt;

&lt;p&gt;As a senior, I use code reviews to mentor junior devs - suggesting improvements and explaining the “why” behind the feedback. This boosts &lt;strong&gt;code quality&lt;/strong&gt; and &lt;strong&gt;team alignment&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;🚀 5. It Made Me a More Thoughtful Engineer&lt;/p&gt;

&lt;p&gt;Code reviews forced me to slow down and &lt;strong&gt;think critically&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Is this code easy to test?&lt;/li&gt;
&lt;li&gt;What happens if X service is down?&lt;/li&gt;
&lt;li&gt;Will this scale?&lt;/li&gt;
&lt;li&gt;Can we refactor this logic into a shared helper?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These questions made me shift from a “just make it work” mindset to a &lt;strong&gt;“make it right, then fast”&lt;/strong&gt; approach.&lt;/p&gt;

&lt;p&gt;💡 Final Thoughts&lt;/p&gt;

&lt;p&gt;Code reviews aren’t just about finding bugs - they’re about &lt;strong&gt;growing as an engineer&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Whether you’re reviewing or being reviewed, every session is a chance to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Learn something new&lt;/li&gt;
&lt;li&gt;Improve your thought process&lt;/li&gt;
&lt;li&gt;Write cleaner, more maintainable code&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you're not taking code reviews seriously yet - start now. Your future self (and team) will thank you.&lt;/p&gt;

&lt;p&gt;✍️ &lt;strong&gt;What has code review taught you?&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
Let’s share experiences in the comments - I’d love to hear your lessons and tips!&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ff09oefji74n23ad963c7.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ff09oefji74n23ad963c7.jpg" alt="Image description" width="612" height="612"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>codequality</category>
      <category>softwareengineering</category>
      <category>career</category>
      <category>teamwork</category>
    </item>
  </channel>
</rss>
