<?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: Easy Way To Enchance Your Coding</title>
	<atom:link href="http://www.gameproducer.net/2006/01/20/easy-way-to-enchance-your-coding/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.gameproducer.net/2006/01/20/easy-way-to-enchance-your-coding/</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: Lumooja</title>
		<link>http://www.gameproducer.net/2006/01/20/easy-way-to-enchance-your-coding/comment-page-1/#comment-131958</link>
		<dc:creator>Lumooja</dc:creator>
		<pubDate>Mon, 17 Nov 2008 10:32:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.gameproducer.net/?p=72#comment-131958</guid>
		<description>Actually you should avoid putting more code into loops.
When you use functions inside a loop, make at least sure they are declared as inline, else the copy/paste style of coding would be better, as it consumes less CPU cycles.</description>
		<content:encoded><![CDATA[<p>Actually you should avoid putting more code into loops.<br />
When you use functions inside a loop, make at least sure they are declared as inline, else the copy/paste style of coding would be better, as it consumes less CPU cycles.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Srekel</title>
		<link>http://www.gameproducer.net/2006/01/20/easy-way-to-enchance-your-coding/comment-page-1/#comment-120</link>
		<dc:creator>Srekel</dc:creator>
		<pubDate>Sun, 22 Jan 2006 13:05:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.gameproducer.net/?p=72#comment-120</guid>
		<description>Me? No, never! ;)</description>
		<content:encoded><![CDATA[<p>Me? No, never! ;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Game Producer</title>
		<link>http://www.gameproducer.net/2006/01/20/easy-way-to-enchance-your-coding/comment-page-1/#comment-114</link>
		<dc:creator>Game Producer</dc:creator>
		<pubDate>Sat, 21 Jan 2006 13:09:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.gameproducer.net/?p=72#comment-114</guid>
		<description>@Srekel: Yes, I think that would be an accurate statement. Hopefully they learn from here - or from other source. And, even experienced coders can be reminded to get rid of redundant code. Agile methods speak about this as well. 

...I might even bet that you have some redundant code lying in your programs? ;)
</description>
		<content:encoded><![CDATA[<p>@Srekel: Yes, I think that would be an accurate statement. Hopefully they learn from here &#8211; or from other source. And, even experienced coders can be reminded to get rid of redundant code. Agile methods speak about this as well. </p>
<p>&#8230;I might even bet that you have some redundant code lying in your programs? ;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Srekel</title>
		<link>http://www.gameproducer.net/2006/01/20/easy-way-to-enchance-your-coding/comment-page-1/#comment-113</link>
		<dc:creator>Srekel</dc:creator>
		<pubDate>Sat, 21 Jan 2006 12:00:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.gameproducer.net/?p=72#comment-113</guid>
		<description>Seriously, doesn&#039;t everyone except beginners know about functions and their use?</description>
		<content:encoded><![CDATA[<p>Seriously, doesn&#8217;t everyone except beginners know about functions and their use?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Game Producer</title>
		<link>http://www.gameproducer.net/2006/01/20/easy-way-to-enchance-your-coding/comment-page-1/#comment-109</link>
		<dc:creator>Game Producer</dc:creator>
		<pubDate>Fri, 20 Jan 2006 12:58:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.gameproducer.net/?p=72#comment-109</guid>
		<description>That looks even better. Objects/classes is the way to go. Thanks for the additional details.</description>
		<content:encoded><![CDATA[<p>That looks even better. Objects/classes is the way to go. Thanks for the additional details.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arex</title>
		<link>http://www.gameproducer.net/2006/01/20/easy-way-to-enchance-your-coding/comment-page-1/#comment-108</link>
		<dc:creator>Arex</dc:creator>
		<pubDate>Fri, 20 Jan 2006 12:51:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.gameproducer.net/?p=72#comment-108</guid>
		<description>Ya, it&#039;s a better way :

class CItem
{
virtual void Update() = 0; // pure virtual
};

class CSword : public CItem
{
void Update(); // sword update
}

class CBow : public CItem
{
void Update(); // bow update
}

list list;
list.add(new CSword);
list.add(new CBow);   

for (int i=0; iUpdate();</description>
		<content:encoded><![CDATA[<p>Ya, it&#8217;s a better way :</p>
<p>class CItem<br />
{<br />
virtual void Update() = 0; // pure virtual<br />
};</p>
<p>class CSword : public CItem<br />
{<br />
void Update(); // sword update<br />
}</p>
<p>class CBow : public CItem<br />
{<br />
void Update(); // bow update<br />
}</p>
<p>list list;<br />
list.add(new CSword);<br />
list.add(new CBow);   </p>
<p>for (int i=0; iUpdate();</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PeterM</title>
		<link>http://www.gameproducer.net/2006/01/20/easy-way-to-enchance-your-coding/comment-page-1/#comment-106</link>
		<dc:creator>PeterM</dc:creator>
		<pubDate>Fri, 20 Jan 2006 09:49:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.gameproducer.net/?p=72#comment-106</guid>
		<description>One could also use polymorphism for this.</description>
		<content:encoded><![CDATA[<p>One could also use polymorphism for this.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
