<?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: Maciej Łebkowski</title>
    <description>The latest articles on DEV Community by Maciej Łebkowski (@mlebkowski).</description>
    <link>https://dev.to/mlebkowski</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F457530%2F7a8024a8-670d-45c1-8e39-8888bfcfed78.png</url>
      <title>DEV Community: Maciej Łebkowski</title>
      <link>https://dev.to/mlebkowski</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mlebkowski"/>
    <language>en</language>
    <item>
      <title>Coding standard deviations</title>
      <dc:creator>Maciej Łebkowski</dc:creator>
      <pubDate>Mon, 24 Aug 2020 10:59:58 +0000</pubDate>
      <link>https://dev.to/mlebkowski/coding-standard-deviations-11ee</link>
      <guid>https://dev.to/mlebkowski/coding-standard-deviations-11ee</guid>
      <description>&lt;p&gt;I’m past my times when I wanted to tweak my projects’ code style. Now I simply conform to one of two standards: either Symfony or PSR. Since the purpose of a coding standard is primarily to be consistent, and readable second, I’d rather keep that consistency across projects (and even open source libraries, vendors, etc), than to bikeshed about little details that nobody can prove would make any real difference.&lt;/p&gt;

&lt;p&gt;That said, I do like to deviate some times. &lt;/p&gt;

&lt;p&gt;First and most important:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--INwczp4u--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://lebkowski.name/assets/images/coding-standard-deviations/arrow-function.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--INwczp4u--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://lebkowski.name/assets/images/coding-standard-deviations/arrow-function.png" alt=""&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This space right there, after the &lt;code&gt;fn&lt;/code&gt; keyword. I mean, how is not mandated by the parser? Important things out of the way, we can move on.&lt;/p&gt;

&lt;p&gt;Test cases have long and descriptive names so they are self describing and readable. Let’s take this a little further by sprinkling some magic dust over our names:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--IJdd31y4--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://lebkowski.name/assets/images/coding-standard-deviations/tests.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--IJdd31y4--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://lebkowski.name/assets/images/coding-standard-deviations/tests.png" alt=""&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Ain’t that better? Once it passes code review at least. And if it doesn’t, I can provide you with a &lt;code&gt;smudge&lt;/code&gt;/&lt;code&gt;clean&lt;/code&gt; git filter. It’s especially useful if your team can’t conform to this great addition. See the attached gist: &lt;code&gt;camelCase_to_piss&amp;nbsp;off&amp;nbsp;your teammates&amp;nbsp;case.sh&lt;/code&gt; 😉 &lt;/p&gt;

&lt;p&gt;Last but not least, let’s make those dates stand out a bit.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--zq9VDPyP--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://lebkowski.name/assets/images/coding-standard-deviations/dates.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--zq9VDPyP--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://lebkowski.name/assets/images/coding-standard-deviations/dates.png" alt=""&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I agree that it’s a little hard to type, but code completion will lend a helping hand, my friend… Well, on the second thought, not for one-letter symbols. 😦 &lt;/p&gt;

&lt;p&gt;Maybe I just need to force push directly to master, to avoid code review? 🤔&lt;/p&gt;




&lt;p&gt;&lt;em&gt;„Coding standard deviations” was written on 2020-08-24 by Maciej Łebkowski, and was first published at &lt;a href="https://lebkowski.name/coding-standard-deviations/"&gt;lebkowski.name&lt;/a&gt;. It’s licensed CC-BY-SA.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>emoji</category>
      <category>codingstandard</category>
      <category>php</category>
      <category>teamwork</category>
    </item>
  </channel>
</rss>
