<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Leonardo Souza on Medium]]></title>
        <description><![CDATA[Stories by Leonardo Souza on Medium]]></description>
        <link>https://medium.com/@leonars?source=rss-53e573e7db2------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*BnW23t0p9tiaogbA6ptodQ.png</url>
            <title>Stories by Leonardo Souza on Medium</title>
            <link>https://medium.com/@leonars?source=rss-53e573e7db2------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 21:21:09 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@leonars/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Code Review Behavior — Let’s be professional]]></title>
            <link>https://medium.com/dunnhumby-data-science-engineering/code-review-behavior-lets-be-professional-48af2ecd5827?source=rss-53e573e7db2------2</link>
            <guid isPermaLink="false">https://medium.com/p/48af2ecd5827</guid>
            <category><![CDATA[software]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[code-review]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[code]]></category>
            <dc:creator><![CDATA[Leonardo Souza]]></dc:creator>
            <pubDate>Tue, 10 Dec 2019 17:36:14 GMT</pubDate>
            <atom:updated>2019-12-11T10:07:28.561Z</atom:updated>
            <content:encoded><![CDATA[<h3>Code Review Behavior — Let’s be professional</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/551/1*vbiqvtSl-ueydQzsdptg7g.png" /><figcaption><a href="https://docs.python.org/3/library/numbers.html">python docs — Numeric abstract base classes</a></figcaption></figure><p>Code review is the process of peer verification in the software development process. Often, the code review may be seen from different perspective to different people. In this blog, I will give you some ideas about how to face the problems amongst engineers in order to help business go ahead without “people” conflicts. We cover code review not only from the engineering but also from the business perspective!</p><p>The objective is to bring more self-awareness and knowledge which can be helpful while reviewing the code. For example, how to deal with professional vs personal conflicts; promoting empathetic behavior instead of personal preferences.</p><p>i.e. Behavioral awareness + tech expertise = Amazing code quality</p><h3>So, what is the Code Review about?</h3><p>The code review is referred to as the process of reviewing the software code. There are collaborative code review tools e.g. Github, Gerrit, GitLab etc. Using these tools, the author of the code names the reviewers who can asynchronously review online.</p><p>Some questions for you think about it:</p><ul><li>What is Code Review for you?</li><li>What do you look for while reviewing code?</li><li>Would you review your own code in the same way as compared to when you do someone else’s? If it is the same, that’s great! You act as a professional. If it is not the same, well, I believe you must have strong reasons for that.</li></ul><h3>Code Review in an Engineering perspective</h3><p>Normally some common review points in the process are security issues, performance, algorithm, code formatting, test coverage, functional requirements etc. However, sometimes, the non-functional requirement of the code is ignored i.e. scalability, maintainability, readability etc.</p><h3>What do you look for while reviewing someone else’s code?</h3><ul><li>The author’s experience?</li><li>Do you take into consideration if the colleague is Junior / Middle / Senior?</li></ul><p>If you have something to add, always suggest and explain your approach, why it’s important or better, no matter how experienced the author is.</p><ul><li>Business requirements?</li></ul><p>More detail in the below section “Code Review in a business perspective” i.e. functional and non-functional requirements.</p><ul><li>Company workflow?</li></ul><p>Reviewing and requesting to fix a small thing NOW leads to new commit / push…. running all the Continuous Integration (CI) pipeline again.</p><p>It can be painful depending on the company / team, taking hours (github resources, running tests, …).</p><h4>How you say it matters!</h4><p>Let’s consider a trivial example of code with no new line in the end of file:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/614/1*4Z3BzGWf9e2ddbBug5G7og.png" /></figure><p><strong>Reviewer1</strong>:<em> “I always add a new line in the end of the file, so add a new line on all the files in this commit!”</em></p><p><strong>Author</strong>: “<em>Ah, what a small thing. no one told me that. I don’t like this reviewer. I’m not going to deploy it today as I am upset.”</em></p><p><strong>Reviewer2</strong>: “<em>A minor comment here — could you please add a new line at the end of the file. It will meet our coding guideline.</em>”</p><p><strong>Author</strong>: “<em>Sure! It is a quick change, will do it right away. Thanks for pointing out.</em>”</p><p>Which kind of review comment would you like to have?</p><h3>Prefer Standard Practices over Personal Preferences</h3><p>In order to gain the best out of the review process — when you submit your comments, consider the following questions before showing the disagreements:</p><ul><li>Does it follow the COMPANY standard?</li><li>Is this an OFFICIAL programming LANGUAGE standard?</li><li>Is this a MARKET standard?</li><li>Or just a PERSONAL preference? (…and the reviewer doesn’t approve it while it is not changed due to personal preference)</li></ul><p>If you are suffering such a stressful situation, how can you handle it? You should take a pause and ask the above questions. It may help avoid the <em>stupid genius disease</em>. “Stupid genius” is a person who <strong>always</strong> says: “<em>… What I do is the best, it works better. Do what I said!</em>”.</p><h3>Code Review in a business perspective</h3><p>It should (or not) be a concern for code reviewing? It is quite important in my opinion!</p><ul><li>What if the Code that you are reviewing DOESN’T COVER 100% requirements?</li></ul><p>privileges / access on a resource (local database / external api, …)</p><p>code belongs to another department/company and requires licensing?</p><p>and so on</p><ul><li>What if it COVERS 100% of the business requirements but it doesn’t make sense in a business perspective or it has lack of requirements definition? For example, the software calculates a price without validation if it’s underpriced or overpriced.</li></ul><p><strong>How critical is it?</strong></p><p>Considering that you work in big company, how bad can it be if we focus only in Engineering and discard Business problems just because it “<em>was not written on the issue</em>” and in the end something is underpriced?</p><p>We <strong>cannot</strong> ignore it! The business needs to work as it should be.</p><p>For <strong>non-critical</strong> things, like code improvements, we can approve it and deliver the feature for Business now without forgetting our Engineering world problems: <strong>Tech Debts</strong></p><p>Apart from the engineering excellence, we need to consider the business requirements as well.</p><h3>Conclusion</h3><ul><li>Be professional, not a stupid genius</li><li>Don’t let a technical conflict become a personal conflict, blocking business</li><li>Don’t be a selfish person, think about the company and be a team player</li></ul><h3>Credit</h3><p>I want to thanks <a href="https://www.linkedin.com/in/ahmedalaahagag">Ahmed Hagag</a>, <a href="https://medium.com/@joaonadais">João Nadais</a>, <a href="https://de.linkedin.com/in/melhakim">Mohammed El Hakim</a> and <a href="https://medium.com/@shivendratiwari81">Shivendra Tiwari</a> for the great contribution on this article.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=48af2ecd5827" width="1" height="1" alt=""><hr><p><a href="https://medium.com/dunnhumby-data-science-engineering/code-review-behavior-lets-be-professional-48af2ecd5827">Code Review Behavior — Let’s be professional</a> was originally published in <a href="https://medium.com/dunnhumby-data-science-engineering">dunnhumby Science blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>