<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>farp.blog &#187; bad code</title>
	<atom:link href="http://fredandrandall.com/blog/tag/bad-code/feed/" rel="self" type="application/rss+xml" />
	<link>http://fredandrandall.com/blog</link>
	<description>Bloggin&#039; about whatever</description>
	<lastBuildDate>Tue, 04 Nov 2014 07:15:30 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.0.38</generator>
	<item>
		<title>Write bad code&#8230; to become a better developer</title>
		<link>http://fredandrandall.com/blog/2011/09/16/write-bad-code-to-become-a-better-developer/</link>
		<comments>http://fredandrandall.com/blog/2011/09/16/write-bad-code-to-become-a-better-developer/#comments</comments>
		<pubDate>Fri, 16 Sep 2011 23:30:24 +0000</pubDate>
		<dc:creator><![CDATA[Randall]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[bad code]]></category>

		<guid isPermaLink="false">http://fredandrandall.com/blog/?p=573</guid>
		<description><![CDATA[I&#8217;ve always thought I could measure my improvement as a developer by how bad my &#8220;bad code&#8221; is. You know what I mean by &#8220;bad code&#8221;. It&#8217;s the stuff you write on your little side projects or proof of concepts. &#8230; <a href="http://fredandrandall.com/blog/2011/09/16/write-bad-code-to-become-a-better-developer/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>I&#8217;ve always thought I could measure my improvement as a developer by how bad my &#8220;bad code&#8221; is. You know what I mean by &#8220;bad code&#8221;. It&#8217;s the stuff you write on your little side projects or proof of concepts. It&#8217;s written as quickly as possible just to get a job done with very little concern to how it will end up working or how it will look when you come back to it in a few months. I don&#8217;t mean intentionally bad stuff. I just mean, you write it down as it comes to your mind. It might not be the best solution, but it is a solution.</p>
<p>I&#8217;ve found that over time, my bad code gets better. It started with simple things like not naming my variables a or b. Then it became things like breaking out separate classes sooner and sooner. I could tell by my speed too. Those things that I always used to look up I started to write by memory. Those 3 line if statements became functions. I&#8217;m better at understanding how whole programs should be structured and I am better at managing things when they start getting really big.</p>
<p>I think most bad code is written because it&#8217;s easier. It&#8217;s easier to copy and paste something 3 times than it is to write a loop isn&#8217;t it? At least until I want to change it to happen more than 3 times. At that point the bad code isn&#8217;t easier any more. How am I supposed to know if the easier code is actually going to make things harder later on? <strong>Experience</strong>. I won&#8217;t know if that shortcut is going to slow me down until I actually try it.</p>
<p>I like to write bad code as a first step. It lets me get a feel for what I&#8217;m writing. It&#8217;ll show me where the tricky bits are going to be and let&#8217;s me get my ideas out quickly. As I find the hard parts, I can go back and rework my solution until it&#8217;s better. The less I need to change that quick and dirty code, the better I think I&#8217;m doing as a developer.</p>
<p>I&#8217;m not trying to say that you should always do things this way, but it seems to be a great way to measure how I&#8217;ve grown as a developer. Remember, code quality is highly subjective. What seems beautiful and elegant to me, might look complicated and stupid to you. I read something once that said something like &#8220;If you look back at your old code, it should always look bad. If it doesn&#8217;t you aren&#8217;t learning anything.&#8221;</p>
]]></content:encoded>
			<wfw:commentRss>http://fredandrandall.com/blog/2011/09/16/write-bad-code-to-become-a-better-developer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
