<?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: Building Browsergames: Reducing Repetition (PHP)</title>
	<atom:link href="http://buildingbrowsergames.com/2008/07/07/reducing-repetition-ph/feed/" rel="self" type="application/rss+xml" />
	<link>http://buildingbrowsergames.com/2008/07/07/reducing-repetition-ph/</link>
	<description>Ever wanted to build a browsergame?</description>
	<lastBuildDate>Wed, 30 Nov 2011 19:42:01 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Patrick</title>
		<link>http://buildingbrowsergames.com/2008/07/07/reducing-repetition-ph/comment-page-1/#comment-773</link>
		<dc:creator>Patrick</dc:creator>
		<pubDate>Fri, 02 Apr 2010 03:10:58 +0000</pubDate>
		<guid isPermaLink="false">http://buildingbrowsergames.com/?p=78#comment-773</guid>
		<description>I did the same on the monster_stats and items as well as stats.php. Then when I try to go fight a monster this error comes up: Fatal error: Cannot redeclare getStat() (previously declared in H:XAMPPxampphtdocsstats.php:7) in H:XAMPPxampphtdocsmonster_stats.php on line 9.&lt;br&gt;If you could show me what the other two codes are supposed to look like that would be very helpful. Thank you.</description>
		<content:encoded><![CDATA[<p>I did the same on the monster_stats and items as well as stats.php. Then when I try to go fight a monster this error comes up: Fatal error: Cannot redeclare getStat() (previously declared in H:XAMPPxampphtdocsstats.php:7) in H:XAMPPxampphtdocsmonster_stats.php on line 9.<br />If you could show me what the other two codes are supposed to look like that would be very helpful. Thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Luke</title>
		<link>http://buildingbrowsergames.com/2008/07/07/reducing-repetition-ph/comment-page-1/#comment-67</link>
		<dc:creator>Luke</dc:creator>
		<pubDate>Tue, 08 Jul 2008 23:21:46 +0000</pubDate>
		<guid isPermaLink="false">http://buildingbrowsergames.com/?p=78#comment-67</guid>
		<description>Thanks for the tip, sepp - I&#039;ll have to look into that as well(it looks like this will be the week of re-designing for DRY =P)</description>
		<content:encoded><![CDATA[<p>Thanks for the tip, sepp &#8211; I&#8217;ll have to look into that as well(it looks like this will be the week of re-designing for DRY =P)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sepp</title>
		<link>http://buildingbrowsergames.com/2008/07/07/reducing-repetition-ph/comment-page-1/#comment-65</link>
		<dc:creator>sepp</dc:creator>
		<pubDate>Tue, 08 Jul 2008 19:59:55 +0000</pubDate>
		<guid isPermaLink="false">http://buildingbrowsergames.com/?p=78#comment-65</guid>
		<description>Hey, that&#039;s great you considered my notes. I&#039;m honored =) .

Actually if you try to keep your code dry you could also expand this principle to cover your database design, too. Why not only have one stats table instead of three or more? Simply call one column &quot;type&quot; again (with ENUM) to choose which stats you want to select, add, delete or update. I haven&#039;t read the whole code absolutely attentively, but I ran over it ;) . The tables seem to be pretty exactly the same.

Greetings from FEtMab
Sepp</description>
		<content:encoded><![CDATA[<p>Hey, that&#8217;s great you considered my notes. I&#8217;m honored =) .</p>
<p>Actually if you try to keep your code dry you could also expand this principle to cover your database design, too. Why not only have one stats table instead of three or more? Simply call one column &#8220;type&#8221; again (with ENUM) to choose which stats you want to select, add, delete or update. I haven&#8217;t read the whole code absolutely attentively, but I ran over it <img src='http://buildingbrowsergames.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  . The tables seem to be pretty exactly the same.</p>
<p>Greetings from FEtMab<br />
Sepp</p>
]]></content:encoded>
	</item>
</channel>
</rss>

