<?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: brandiware</title>
    <description>The latest articles on DEV Community by brandiware (@brandiware).</description>
    <link>https://dev.to/brandiware</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%2F540678%2F20b7a668-6414-45de-91c4-ded6383aa063.jpg</url>
      <title>DEV Community: brandiware</title>
      <link>https://dev.to/brandiware</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/brandiware"/>
    <language>en</language>
    <item>
      <title>IF code is commented properly THEN readability is good and ELSE is a useful construct.</title>
      <dc:creator>brandiware</dc:creator>
      <pubDate>Thu, 17 Dec 2020 07:58:32 +0000</pubDate>
      <link>https://dev.to/brandiware/if-code-is-commented-properly-then-readability-is-good-and-else-is-a-useful-construct-1jb6</link>
      <guid>https://dev.to/brandiware/if-code-is-commented-properly-then-readability-is-good-and-else-is-a-useful-construct-1jb6</guid>
      <description>&lt;p&gt;Here's my opinion on the numerous attempts to improve code readability by dropping useful language constructs such as ELSE. &lt;/p&gt;

&lt;p&gt;Readability IS a sign of code quality - for sure. And it boosts the value of software for quite obvious reasons. &lt;/p&gt;

&lt;p&gt;HOWEVER, that is NOT achieved effectively enough by dropping useful elements of the coding language. You can't assert "never use a knive!" simply because MISUSE of knives is dangerous and can be BLOODY.&lt;/p&gt;

&lt;p&gt;INSTEAD, consider focussing on MORE and proper COMMENTING (surely you can comment your code even better than in the example below):&lt;/p&gt;

&lt;p&gt;// Process the passed argument, ... the result of the ... calculation ... , ... if it IS useful&lt;br&gt;
if myVariable != nil {&lt;br&gt;
//DoSomeUsefulStuff(myVariable)&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;Now judge by yourself how well the else part reads if commented (do provide logical context of the preceeding IF logic)&lt;/p&gt;

&lt;p&gt;// Drop out of the function / procedure if the passed argument, ... the result of the ... calculation ... , ... is NOT useful&lt;br&gt;
} else {&lt;br&gt;
return “”&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;My personal bottom line on code readability: do COMMENT amply;&lt;/p&gt;

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