<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>Building Browsergames - Latest Comments in Getting Started With A Templating System (Ruby on Rails)</title><link>http://bbgames.disqus.com/</link><description></description><language>en</language><lastBuildDate>Wed, 21 Jan 2009 16:41:11 -0000</lastBuildDate><item><title>Re: Getting Started With A Templating System (Ruby on Rails)</title><link>http://buildingbrowsergames.com/2008/08/29/getting-started-with-a-templating-system-ruby-on-rails/#comment-5447053</link><description>stumbled on this thread while looking for an education on templating systems. &lt;br&gt;&lt;br&gt;would you be able to suggest a few references of systems that you indicate come highly recommended or that pre-compile. my app is not game oriented - just a case where different websites all hosted on the same server will all use a lot of the underlying code but appear and feel different.&lt;br&gt;&lt;br&gt;I have been to the smarty website but there seems to be a lot of debate on whether that's overkill.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">amoncarter</dc:creator><pubDate>Wed, 21 Jan 2009 16:41:11 -0000</pubDate></item><item><title>Re: Getting Started With A Templating System (Ruby on Rails)</title><link>http://buildingbrowsergames.com/2008/08/29/getting-started-with-a-templating-system-ruby-on-rails/#comment-4741168</link><description>A lot of the templating systems available now actually pre-compile your&lt;br&gt;templates the first time they get used - so while there is some overhead,&lt;br&gt;that overhead is negligible after the first hit on your template - if your&lt;br&gt;server is fast enough, the overhead from that initial hit should be barely&lt;br&gt;noticeable.&lt;br&gt;In my experience, programming languages are typically designed the way they&lt;br&gt;are to increase developer productivity - Templating systems are just another&lt;br&gt;addition to your toolbelt to increase that productivity - they aren't a&lt;br&gt;silver bullet of any kind.&lt;br&gt;&lt;br&gt;Also, I would be wary of optimizing a little too early - your statement that&lt;br&gt;"it's an overhead on your server" sounds like you may be prematurely jumping&lt;br&gt;to the conclusion that your templating system is what is slowing your game&lt;br&gt;down. As you can see by looking at the benchmarks at&lt;br&gt;&lt;a href="http://shootout.alioth.debian.org/u64/benchmark.php?test=all&amp;lang=all" rel="nofollow"&gt;http://shootout.alioth.debian.org/u64/benchmark...&lt;/a&gt;, Ruby&lt;br&gt;and PHP aren't what you should be using at all if you're concerned about&lt;br&gt;performance(at least not on a 64-bit Ubuntu machine, anyway) - if you wanted&lt;br&gt;your game to be as absolutely fast as possible on the cheapest hardware,&lt;br&gt;you'd write it in C++.&lt;br&gt;&lt;br&gt;At the end of the day, it's your game. If you'd rather not use a templating&lt;br&gt;system, then don't! Maintaining your code is only your responsibility, and&lt;br&gt;you(or your team) will be the only ones who see it(or even worry about it,&lt;br&gt;chances are). So do what you like - but know that templates come highly&lt;br&gt;recommended.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">bbgames</dc:creator><pubDate>Tue, 30 Dec 2008 02:50:07 -0000</pubDate></item><item><title>Re: Getting Started With A Templating System (Ruby on Rails)</title><link>http://buildingbrowsergames.com/2008/08/29/getting-started-with-a-templating-system-ruby-on-rails/#comment-4737270</link><description>I don't really like template system becasuse it's an overhead on your server. More than that, scripting languages like php and ruby have been designed to be simple so I'm not attracted by those templating system. I'm keen on implementing mvc like zend or cakephp but thanks for the tutorial :)</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">play online games</dc:creator><pubDate>Mon, 29 Dec 2008 22:48:57 -0000</pubDate></item><item><title>Re: Getting Started With A Templating System (Ruby on Rails)</title><link>http://buildingbrowsergames.com/2008/08/29/getting-started-with-a-templating-system-ruby-on-rails/#comment-4469053</link><description>Very interesting. Thanks!</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Juegos Gratis</dc:creator><pubDate>Wed, 17 Dec 2008 18:01:51 -0000</pubDate></item><item><title>Re: Getting Started With A Templating System (Ruby on Rails)</title><link>http://buildingbrowsergames.com/2008/08/29/getting-started-with-a-templating-system-ruby-on-rails/#comment-3089172</link><description>Not really. The minimal amount of code added to the controller and the view there was enough to get the user object and pull out the login name.&lt;br&gt;&lt;br&gt;If you were confused by my comment that "we've seen that the templating code (in the .html.erb files) gives us the ability to include partial pages to reuse sections of HTML, pull data from variables...". That statement is true only across all of the Ruby on Rails entries I've written so far. I showed only the conditional showing and not showing parts of the page and pulling data from a variable. If you want to see the first time I used a partial you can see that in The Login Page (Ruby on Rails) Part 2 (&lt;a href="http://buildingbrowsergames.com/2008/08/25/the-login-page-ruby-on-rails-part-2/" rel="nofollow"&gt;http://buildingbrowsergames.com/2008/08/25/the-...&lt;/a&gt;).</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">John</dc:creator><pubDate>Mon, 01 Sep 2008 14:59:51 -0000</pubDate></item><item><title>Re: Getting Started With A Templating System (Ruby on Rails)</title><link>http://buildingbrowsergames.com/2008/08/29/getting-started-with-a-templating-system-ruby-on-rails/#comment-3089171</link><description>Most of your article seems to have dissapeared, or fallen of the tubes or something.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Flibbertigib</dc:creator><pubDate>Mon, 01 Sep 2008 08:43:23 -0000</pubDate></item></channel></rss>