<?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 Gülcihan on Medium]]></title>
        <description><![CDATA[Stories by Gülcihan on Medium]]></description>
        <link>https://medium.com/@GulcihanBdo?source=rss-96e0cbc709bf------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*1jqNpQZKb-GgEyoBzc6Zpw.jpeg</url>
            <title>Stories by Gülcihan on Medium</title>
            <link>https://medium.com/@GulcihanBdo?source=rss-96e0cbc709bf------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 16:38:02 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@GulcihanBdo/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[Great Tips for Communication during Code Review]]></title>
            <link>https://medium.com/@GulcihanBdo/great-tips-for-communication-during-code-review-f1ea7d684ed9?source=rss-96e0cbc709bf------2</link>
            <guid isPermaLink="false">https://medium.com/p/f1ea7d684ed9</guid>
            <category><![CDATA[suggestions]]></category>
            <category><![CDATA[tips]]></category>
            <category><![CDATA[code-review]]></category>
            <dc:creator><![CDATA[Gülcihan]]></dc:creator>
            <pubDate>Mon, 09 Mar 2020 17:05:10 GMT</pubDate>
            <atom:updated>2020-03-10T15:29:49.042Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*3Q95kPc4IDPEqWjH" /><figcaption>Photo by <a href="https://unsplash.com/@breakyourboundaries4?utm_source=medium&amp;utm_medium=referral">Matt Collamer</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Communication plays always a critical role in our work life. Every person has their own way to express themselves but the common point should be always the courtesy.</p><p>There are quite cool tips around regarding how to do a code review, what to keep in mind while doing a code review etc. but today, I would like to talk about how to write a comment to your colleague during the code review, what should be the correct wording and what are the responsibilities of both reviewer and reviewee and to give you some other useful tips.</p><p>P.S. During the rest of this writing, I will use PR abbreviation to refer to the pull request, it could be MR (merge request) for you.</p><h4>Tips for the Reviewer</h4><p>As a reviewer(a person who reviews others code), your main responsibilities are giving feedback to your colleagues, assuring the quality of the code and sharing knowledge.</p><p>While doing a code review, what you write as a comment can be contextually a hundred percent correct but it does not mean that it is the best way to express it. So, here comes some tips:</p><p>1. <strong>Determine the rules of review with your team: </strong>Basically, have a guideline. If your comment is a <em>suggestion</em>, which is something nice to have but not a must, then you may use S initial before writing your comment when something is unclear and if you want to ask for clarification, you can use Q to indicate that your comment is actually a <em>question </em>and<em> </em>if you think the change is a <em>must</em> for you, then you can prefer to use M. Here are some examples:</p><p><em>S: You can put this String into a constant.</em></p><p><em>S: This object already has a name field in it, so you don’t need to pass the name again.</em></p><p><em>Q: Is there any reason for not injecting this class with Dagger?</em></p><p><em>M: This test case will pass both when this boolean is true and false. To make it fail when it is false, you can change it and instead use bla bla blaaa to have a more accurate case.</em></p><p><strong>2. Be polite and respectful: </strong>This one is the main tip that everyone suggests. Still, what does it mean to be polite? Everyone thinks that they are polite, but this is not the case every time. By following the other tips that I’m writing in this article, you can decide or reconsider yourself whether you are “polite” enough or is there any point to improve in the way you express yourself.</p><p><strong>3. Wording: </strong>This item comes into play mostly when you saw a code snippet and you didn’t understand why it is needed or used or when you disagree with the applied solution or you think it is a spaghetti code or a hacky way of solving the problem. So, here are some examples to help your</p><p>🙅:<em> Why did you add this!?</em></p><p>👍:<em> Can you please help me to understand the reason why did we use this X class instead of Y?</em></p><p>Or,</p><p>🙅:<em> This comment explains nothing and unnecessary, everyone can understand what this method does just looking at the code. Please add something that makes sense.</em></p><p>👍:<em> I prefer the comments which give us background information and helps us to understand the reasoning behind that code snippet, not the ones which explain what code does. So, maybe we can say here “bla bla blaa” as a comment.</em></p><p><strong>4. Don’t block anyone: </strong>If you are requested to do a code review, just try to allocate your time as soon as you have a spot. Create some spots during the day that you dedicated yourself specifically for the code reviews and do your review carefully and read the lines well.</p><p><strong>5. Appreciate the good code: </strong>If you like the solution which is applied to a problem or the approach used in the code then please just tell this since positive comments motivate the code owner and also make that person feel honored.</p><h4><strong>Tips for the Reviewee</strong></h4><p>We also have some responsibilities as a person whose code undergoes a review, so I want to give some suggestions to them. Please keep in mind that code reviews are the core times that you can learn from your colleagues. They are dedicating their time to you and you also have to be respectful to them and value their comments.</p><p><strong>1. No unaddressed comments:</strong> Try to answer all the comments, if the discussion continues, then talk it offline and write the result as an answer to inform the other reviewers.</p><p><strong>2. Try to do all the suggestions in the same pull request:</strong> Let’s say you have a typo in your PR or the reviewer suggests you to take some part of the code snippet into a separate method, please try to do it within the same PR unless you have an urgent case like a hot fix.</p><p><strong>3. Add/use labels in your pull requests:</strong> Actually, this suggestion goes to the whole team. If you are not doing this, I highly recommend you to add labels like “<em>ready to review</em>”, “<em>urgent</em>”(to get the attention), “<em>QA done</em>”, “<em>don’t merge</em>”(if there is a code freeze and you are late for this release), “<em>don’t review</em>”(if you already have a PR for a ticket but then the detail of the ticket is changed and you have to add or change something in your PR, this one is useful) to improve the communication.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fvMJZAMxjw1XQBhfYJuXFQ.png" /><figcaption>Example for the set of custom labels</figcaption></figure><p><strong>4. Create a separate ticket for the out of topic comments:</strong> If the reviewer suggests you something which is not related with the scope of your task and which can take a long time to implement i.e. convert a long class into Kotlin or apply the new architecture etc. you can suggest to create a separate ticket for it and prioritize. Prioritize part is also important since those tickets never get the attention, they will most likely will not be implemented. As a developer, it is your responsibility or up to your ethical values to do it.</p><p><strong>5. Do not underestimate less senior’s comments:</strong> If you are a senior developer in the team (by senior, I don’t mean the title, I mean having more experience in that project or working in that company for a long time, having more background information) and receiving comments from a less experienced colleague, this must be totally fine for you because what matters is the comment itself not the person who writes it.</p><p><strong>6. Always return thanks for the beautiful comments:</strong> When you get a really useful suggestion which you didn’t consider as an option so far, then it would be always nice to thank to that person for this new and beautiful information.</p><p><strong>7. Learn from previous comments:</strong> If you notice that you are getting more or less the same comments for your PRs, then it is your time to change this. Just note them or keep them in your mind and after you created your PR, first review it by yourself before serving it to other colleagues, try to find out what possible comments you can get from them.</p><p>And last but not least, this suggestion again applies to both the reviewers and the reviewees, <strong>Emojis always help! </strong>Use emojis to express your feelings or just to make the conversation more friendly or cheerful since it is hard to express the emotions only with texts, right? You can find a collection for super useful Github emojis in this <a href="https://gist.github.com/rxaviers/7360908">link</a> 🙏 👊 👍 🤔</p><p>If you have any other ideas that you think it could be useful, please feel free to share them with us in the comment section down below 👇 and if you are more interested in the details or tips for the code review on all its aspects, here I can highly recommend you these amazing articles:</p><ul><li><a href="https://google.github.io/eng-practices/review/reviewer/">How to do a code review</a></li><li><a href="https://medium.com/palantir/code-review-best-practices-19e02780015f">Code Review Best Practices</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f1ea7d684ed9" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>