<?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: kubicle</title>
    <description>The latest articles on DEV Community by kubicle (@kubicle).</description>
    <link>https://dev.to/kubicle</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%2F196603%2F087dbb0a-481a-4a2a-a196-ae710f6f0cdd.jpeg</url>
      <title>DEV Community: kubicle</title>
      <link>https://dev.to/kubicle</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/kubicle"/>
    <language>en</language>
    <item>
      <title>What I look for in PR reviews</title>
      <dc:creator>kubicle</dc:creator>
      <pubDate>Tue, 13 Aug 2019 10:58:41 +0000</pubDate>
      <link>https://dev.to/kubicle/what-i-look-for-in-pr-reviews-3h54</link>
      <guid>https://dev.to/kubicle/what-i-look-for-in-pr-reviews-3h54</guid>
      <description>&lt;p&gt;This has been (and will be again) written and explained in length by talented writers, but I thought having a very short list can help.&lt;br&gt;
For example you can modify this list as you prefer and share it with junior devs you are about to review, so they can "get there" faster.&lt;/p&gt;

&lt;h1&gt;
  
  
  The short list
&lt;/h1&gt;

&lt;p&gt;The 4 aspects below are on top of my list for any review:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;small functions doing a single task&lt;/li&gt;
&lt;li&gt;no "copy-paste" code (DRY)&lt;/li&gt;
&lt;li&gt;good naming of functions and variables&lt;/li&gt;
&lt;li&gt;separation of concerns&lt;/li&gt;
&lt;/ul&gt;

&lt;h1&gt;
  
  
  Some Details
&lt;/h1&gt;

&lt;p&gt;The explanations below are more my own "gut feeling"; people can discuss or disagree endlessly about some of these points. Feel free to adapt/modify according to your own opinion.&lt;/p&gt;

&lt;h2&gt;
  
  
  Good naming of variables
&lt;/h2&gt;

&lt;p&gt;No need for a comment to understand what a variable contains - or at least easy to remember when you read its comment once.&lt;/p&gt;

&lt;h2&gt;
  
  
  Good naming of functions
&lt;/h2&gt;

&lt;p&gt;No comment should be needed next to a function call to understand what calling this function does.&lt;br&gt;
Comments in the function's code can explain HOW it is done, or WHY it is done this way, of course!&lt;/p&gt;

&lt;h2&gt;
  
  
  Separation of concerns
&lt;/h2&gt;

&lt;p&gt;Code is where it should be, data and functions are private as much as possible, etc.&lt;br&gt;
Note the "etc.": there is a lot to say/explain about how this can be done, and usually too much for a code review.&lt;br&gt;
Also, this is often about system design, hence the code review might happen too late to change things.&lt;br&gt;
Finally, it is the hardest concept to explain to junior developers.&lt;br&gt;
For these reasons, this point is last in my short list. This is a bit like a "Trojan horse" bullet point, with an army of concepts hidden within.&lt;/p&gt;

</description>
      <category>github</category>
      <category>pr</category>
      <category>codequality</category>
    </item>
  </channel>
</rss>
