<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: The best piece of coding advice I&#8217;ve ever received</title>
	<atom:link href="http://www.gameproducer.net/2011/03/22/the-best-piece-of-coding-advice-ive-ever-received/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.gameproducer.net/2011/03/22/the-best-piece-of-coding-advice-ive-ever-received/</link>
	<description>I bake games. Indie style.</description>
	<lastBuildDate>Thu, 16 May 2013 13:23:44 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: josh</title>
		<link>http://www.gameproducer.net/2011/03/22/the-best-piece-of-coding-advice-ive-ever-received/comment-page-1/#comment-148835</link>
		<dc:creator>josh</dc:creator>
		<pubDate>Fri, 13 Apr 2012 11:36:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.gameproducer.net/?p=5740#comment-148835</guid>
		<description>My favorite code advice is &quot;if you need something &gt;3 times, make it a function/object. Otherwise, re-code it inline.&quot;  Without this rule, I 1) underestimate the cost of developing reliable objects; 2) overestimate the effort required to code the same thing a second time; and 3) overestimate the likelihood that I&#039;ll need to that function again (in that language/context) in the future.</description>
		<content:encoded><![CDATA[<p>My favorite code advice is &#8220;if you need something &gt;3 times, make it a function/object. Otherwise, re-code it inline.&#8221;  Without this rule, I 1) underestimate the cost of developing reliable objects; 2) overestimate the effort required to code the same thing a second time; and 3) overestimate the likelihood that I&#8217;ll need to that function again (in that language/context) in the future.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dsp4</title>
		<link>http://www.gameproducer.net/2011/03/22/the-best-piece-of-coding-advice-ive-ever-received/comment-page-1/#comment-145734</link>
		<dc:creator>dsp4</dc:creator>
		<pubDate>Wed, 08 Jun 2011 03:05:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.gameproducer.net/?p=5740#comment-145734</guid>
		<description>It&#039;s all in the single responsibility principle! Most of the time when I feel my code is inflexible, it&#039;s because I&#039;ve shoehorned too much functionality into the same &quot;thing&quot;.

http://en.wikipedia.org/wiki/Single_responsibility_principle</description>
		<content:encoded><![CDATA[<p>It&#8217;s all in the single responsibility principle! Most of the time when I feel my code is inflexible, it&#8217;s because I&#8217;ve shoehorned too much functionality into the same &#8220;thing&#8221;.</p>
<p><a href="http://en.wikipedia.org/wiki/Single_responsibility_principle" rel="nofollow">http://en.wikipedia.org/wiki/Single_responsibility_principle</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lumooja</title>
		<link>http://www.gameproducer.net/2011/03/22/the-best-piece-of-coding-advice-ive-ever-received/comment-page-1/#comment-144562</link>
		<dc:creator>Lumooja</dc:creator>
		<pubDate>Wed, 23 Mar 2011 00:09:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.gameproducer.net/?p=5740#comment-144562</guid>
		<description>I use this kind of one thing does one thing a lot, because it makes programs much cleaner and more logical. For example today I was writing a simple GUI for Monkey, and I implemented buttons which can stick down, and be hovered. So I created simple hovered, down and stick boolean fields into the Button class, and the rendering code relies on those values only. The update code then handles the logic which is very simple once you have established those &quot;one thing&quot; flags in your class.</description>
		<content:encoded><![CDATA[<p>I use this kind of one thing does one thing a lot, because it makes programs much cleaner and more logical. For example today I was writing a simple GUI for Monkey, and I implemented buttons which can stick down, and be hovered. So I created simple hovered, down and stick boolean fields into the Button class, and the rendering code relies on those values only. The update code then handles the logic which is very simple once you have established those &#8220;one thing&#8221; flags in your class.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jake Birkett</title>
		<link>http://www.gameproducer.net/2011/03/22/the-best-piece-of-coding-advice-ive-ever-received/comment-page-1/#comment-144561</link>
		<dc:creator>Jake Birkett</dc:creator>
		<pubDate>Tue, 22 Mar 2011 20:03:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.gameproducer.net/?p=5740#comment-144561</guid>
		<description>I recommend Code Complete 2, epic book.</description>
		<content:encoded><![CDATA[<p>I recommend Code Complete 2, epic book.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Juuso</title>
		<link>http://www.gameproducer.net/2011/03/22/the-best-piece-of-coding-advice-ive-ever-received/comment-page-1/#comment-144552</link>
		<dc:creator>Juuso</dc:creator>
		<pubDate>Tue, 22 Mar 2011 09:40:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.gameproducer.net/?p=5740#comment-144552</guid>
		<description>@Igor: not thing.

@Kamil: thanks for the hint. goes to my potential shopping list</description>
		<content:encoded><![CDATA[<p>@Igor: not thing.</p>
<p>@Kamil: thanks for the hint. goes to my potential shopping list</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kamil Toszek</title>
		<link>http://www.gameproducer.net/2011/03/22/the-best-piece-of-coding-advice-ive-ever-received/comment-page-1/#comment-144551</link>
		<dc:creator>Kamil Toszek</dc:creator>
		<pubDate>Tue, 22 Mar 2011 08:26:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.gameproducer.net/?p=5740#comment-144551</guid>
		<description>I recommend reading &quot;Clean Code: A Handbook of Agile Software Craftsmanship&quot;. You will find this one plus much more advices there. Worth reading really.</description>
		<content:encoded><![CDATA[<p>I recommend reading &#8220;Clean Code: A Handbook of Agile Software Craftsmanship&#8221;. You will find this one plus much more advices there. Worth reading really.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Igor Hardy</title>
		<link>http://www.gameproducer.net/2011/03/22/the-best-piece-of-coding-advice-ive-ever-received/comment-page-1/#comment-144550</link>
		<dc:creator>Igor Hardy</dc:creator>
		<pubDate>Tue, 22 Mar 2011 08:11:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.gameproducer.net/?p=5740#comment-144550</guid>
		<description>What thing should I replace the second &quot;thing&quot; with?</description>
		<content:encoded><![CDATA[<p>What thing should I replace the second &#8220;thing&#8221; with?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
