<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Building Browsergames - Latest Comments in Building Browsergames: Reducing Repetition (PHP)</title><link>http://bbgames.disqus.com/</link><description></description><atom:link href="https://bbgames.disqus.com/building_browsergames_reducing_repetition_php/latest.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Thu, 01 Apr 2010 18:10:58 -0000</lastBuildDate><item><title>Re: Building Browsergames: Reducing Repetition (PHP)</title><link>http://buildingbrowsergames.com/2008/07/07/reducing-repetition-ph/#comment-42760075</link><description>&lt;p&gt;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:\XAMPP\xampp\htdocs\stats.php:7) in H:\XAMPP\xampp\htdocs\monster_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.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Patrick</dc:creator><pubDate>Thu, 01 Apr 2010 18:10:58 -0000</pubDate></item><item><title>Re: Building Browsergames: Reducing Repetition (PHP)</title><link>http://buildingbrowsergames.com/2008/07/07/reducing-repetition-ph/#comment-3089138</link><description>&lt;p&gt;Thanks for the tip, sepp - I'll have to look into that as well(it looks like this will be the week of re-designing for DRY =P)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Luke</dc:creator><pubDate>Tue, 08 Jul 2008 19:21:46 -0000</pubDate></item><item><title>Re: Building Browsergames: Reducing Repetition (PHP)</title><link>http://buildingbrowsergames.com/2008/07/07/reducing-repetition-ph/#comment-3089137</link><description>&lt;p&gt;Hey, that's great you considered my notes. I'm honored =) .&lt;/p&gt;&lt;p&gt;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 "type" again (with ENUM) to choose which stats you want to select, add, delete or update. I haven't read the whole code absolutely attentively, but I ran over it ;) . The tables seem to be pretty exactly the same.&lt;/p&gt;&lt;p&gt;Greetings from FEtMab&lt;br&gt;Sepp&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">sepp</dc:creator><pubDate>Tue, 08 Jul 2008 15:59:55 -0000</pubDate></item></channel></rss>