<?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: Tim Trautman</title>
    <description>The latest articles on DEV Community by Tim Trautman (@timtrautman).</description>
    <link>https://dev.to/timtrautman</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%2F111961%2F0892b632-cefd-4a5c-bc26-df2a3327ee60.png</url>
      <title>DEV Community: Tim Trautman</title>
      <link>https://dev.to/timtrautman</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/timtrautman"/>
    <language>en</language>
    <item>
      <title>What is readable code?</title>
      <dc:creator>Tim Trautman</dc:creator>
      <pubDate>Mon, 04 Nov 2019 21:56:09 +0000</pubDate>
      <link>https://dev.to/timtrautman/what-is-readable-code-3la2</link>
      <guid>https://dev.to/timtrautman/what-is-readable-code-3la2</guid>
      <description>&lt;p&gt;What makes some code readable and some not?&lt;/p&gt;

&lt;p&gt;I recently found myself trying to explain this to a new programmer and the question has stuck with me.&lt;/p&gt;

&lt;p&gt;Here's my answer: readable code presents a solution as clearly as possible to &lt;b&gt;&lt;em&gt;other programmers&lt;/em&gt;&lt;/b&gt; by:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Demonstrating clear intent&lt;/li&gt;
&lt;li&gt;Not being longer than it needs to be&lt;/li&gt;
&lt;li&gt;Keeping variables and logic "close" to where they're used&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;But when I think about when I've used the term "readability," though, I've often make assumptions about &lt;b&gt;&lt;em&gt;who&lt;/em&gt;&lt;/b&gt; code readable to.  I'd imagine that beginners to programming, beginners to a new language, and perhaps even experienced programmers without context in a particular domain might find perfectly "readable" code still difficult to understand.&lt;/p&gt;

&lt;p&gt;What do you think makes code readable?  And how do you think about &lt;b&gt;&lt;em&gt;who&lt;/em&gt;&lt;/b&gt; your code is readable to?&lt;/p&gt;

</description>
      <category>discuss</category>
      <category>webdev</category>
      <category>beginners</category>
    </item>
  </channel>
</rss>
