<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>Building Browsergames - Latest Comments in Building Browsergames: a brief design document</title><link>http://bbgames.disqus.com/</link><description></description><language>en</language><lastBuildDate>Sun, 08 Feb 2009 15:51:13 -0000</lastBuildDate><item><title>Re: Building Browsergames: a brief design document</title><link>http://buildingbrowsergames.com/2008/05/22/building-browsergames-a-brief-design-document/#comment-6098215</link><description>While PHP *does* have enough built into it to freely intermingle your&lt;br&gt;business logic and presentation code(and even seems to encourage you to),&lt;br&gt;I'm wary of writing code that does that. Frequently for my own projects they&lt;br&gt;have begun with a sole developer(me), and then as they have gone on the team&lt;br&gt;has grown - all too often, a designer who knows nothing of PHP and has no&lt;br&gt;desire to learn it is the one who will be doing the final design for the&lt;br&gt;game. In those situations, being able to give them a list of the variables&lt;br&gt;available to them in the template and the Smarty documentation has proven&lt;br&gt;extremely useful to allow me to keep focusing on features, while someone&lt;br&gt;else focuses on making things look nice.&lt;br&gt;&lt;br&gt;While embedding PHP directly into your files is an option, it is a bit of a&lt;br&gt;messy one - and it makes it far too easy for someone who doesn't know enough&lt;br&gt;PHP to have a firm grasp on what they're doing to break something that they&lt;br&gt;shouldn't.&lt;br&gt;&lt;br&gt;To be clear, I am certainly not saying that Smarty is the *best* or *only* way to develop. I'm simply saying that your code *should* be abstracted from your presentation, and using a templating engine like Smarty or something else is a better way of doing that(in my opinion) than relying on someone copying and pasting code without understanding what it does.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">bbgames</dc:creator><pubDate>Sun, 08 Feb 2009 15:51:13 -0000</pubDate></item><item><title>Re: Building Browsergames: a brief design document</title><link>http://buildingbrowsergames.com/2008/05/22/building-browsergames-a-brief-design-document/#comment-6074460</link><description>@Luke&lt;br&gt;&lt;br&gt;Keeping presentation separate from business logic is the foundation for good development, however, PHP is already a templating system. Using an abstraction on top of something that already does a good job at abstracting code is not a good idea.&lt;br&gt;&lt;br&gt;Many languages do not have the luxury of combining code with HTML, which forces them to keep it separate and building the abstractions into their business logic. This creates complexities that are not needed. The primary focus should be building a solution as quickly, but as professional as possible.&lt;br&gt;&lt;br&gt;Smarty goes against this by forcing both the designers and programmers to learn the language of Smarty. You then have to hope that the next project also uses Smarty and not some other convoluted custom system. I've seen many custom templating systems and I have to say that not many projects use Smarty.&lt;br&gt;&lt;br&gt;Another issue from the developer's point-of-view is extensibility, which is difficult for Smarty, because while it has its own API for it, not every custom templating system will. The API for Smarty (when I last checked) was not as simple as it should be.&lt;br&gt;&lt;br&gt;When I write a template system for a project, I think of WordPress, because they do it as easy as possible for both developers and designers ("Just plug this code in to your code and it just works"... "In most cases."). As opposed to spending two or three weeks learning how to use Smarty and other two or three weeks trying to learn how to extend Smarty with custom tags.&lt;br&gt;&lt;br&gt;I can do everything Smarty does using just (X)HTML and PHP, which Smarty abstracts from the developer and designer. If you ask me, PHP is far easier to use than the syntax Smarty forces you to use.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jacob Santos</dc:creator><pubDate>Sat, 07 Feb 2009 19:23:55 -0000</pubDate></item><item><title>Re: Building Browsergames: a brief design document</title><link>http://buildingbrowsergames.com/2008/05/22/building-browsergames-a-brief-design-document/#comment-5868304</link><description>I am afraid that the tutorials have been written with Smarty in mind; using&lt;br&gt;a templating system lets you keep design and code separate from each other.&lt;br&gt;There is no Smarty-less version of the tutorials.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">bbgames</dc:creator><pubDate>Thu, 05 Feb 2009 11:21:22 -0000</pubDate></item><item><title>Re: Building Browsergames: a brief design document</title><link>http://buildingbrowsergames.com/2008/05/22/building-browsergames-a-brief-design-document/#comment-5862672</link><description>is it possible to have a example whitout Smarty??&lt;br&gt;If u have a link to something u can mail me.&lt;br&gt;&lt;br&gt;Greetings</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Warlords</dc:creator><pubDate>Thu, 05 Feb 2009 06:54:22 -0000</pubDate></item><item><title>Re: Building Browsergames: a brief design document</title><link>http://buildingbrowsergames.com/2008/05/22/building-browsergames-a-brief-design-document/#comment-5253291</link><description>I wish successes in your building. I will watch updatings.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Foto</dc:creator><pubDate>Sat, 17 Jan 2009 21:26:42 -0000</pubDate></item></channel></rss>