<?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"
	>
<channel>
	<title>Comments on: Ruby on Rails: a look at the code</title>
	<atom:link href="http://www.sitepoint.com/blogs/2005/12/15/ruby-on-rails-a-look-at-the-code/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sitepoint.com/blogs/2005/12/15/ruby-on-rails-a-look-at-the-code/</link>
	<description>News, opinion, and fresh thinking for web developers and designers. The official podcast of sitepoint.com.</description>
	<pubDate>Tue, 02 Dec 2008 01:31:54 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
		<item>
		<title>By: Dake</title>
		<link>http://www.sitepoint.com/blogs/2005/12/15/ruby-on-rails-a-look-at-the-code/#comment-179380</link>
		<dc:creator>Dake</dc:creator>
		<pubDate>Wed, 14 Feb 2007 03:45:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/2005/12/15/ruby-on-rails-a-look-at-the-code/#comment-179380</guid>
		<description>Checking out Rails, and I am liking it... coming from a Perl background, I tend to say the opposite of what most people say on the syntax (most of the people commenting on syntax and grammar have a few spelling and grammar errors in there posts... I'll leave who ever reads this to explore that line of thought more).

With Java, you have nothing, really, to clue somebody in as to what a variable is. There are various notations to get around this, so this will mostly follow whatever convention your business uses.

However PHP, with me coming from a Perl background, is about as ugly as they come, syntax wise. What, exactly is the point of the '$' in PHP? '$' in Perl means scalar or reference (which essentially are the same), '@' means array, and '%' means hash. Meanwhile in PHP, there is no difference between arrays and hashes (perhaps not that confusing, until you try to guess how a half hash, half array data type iterates). With Ruby, CAPITAL_LETTERS means its a constant being defined. $ means the variable is global (no messing with a function or super array to make something global). A variable in_lower_case (often using ada style notation) means it is an instance variable, and will disappear outside the current lexical scope. @@ means the variable is a member of the current object being modified. Saves you five letters out of typing $this-&#62;.

The syntax is wonderfully designed. One just needs to understand it. Also, one needs to realize _everything_ in Ruby is an object. Even the number 5. hence code like the following make sense.
&lt;pre&gt;&lt;code class="ruby"&gt;
# code untested... but a monkey should be able to figure out
# how to fix any syntax errors.
5.times do &#124;x&#124;
   print "Hello from the Ruby World"
end
&lt;/code&gt;&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Checking out Rails, and I am liking it&#8230; coming from a Perl background, I tend to say the opposite of what most people say on the syntax (most of the people commenting on syntax and grammar have a few spelling and grammar errors in there posts&#8230; I&#8217;ll leave who ever reads this to explore that line of thought more).</p>
<p>With Java, you have nothing, really, to clue somebody in as to what a variable is. There are various notations to get around this, so this will mostly follow whatever convention your business uses.</p>
<p>However PHP, with me coming from a Perl background, is about as ugly as they come, syntax wise. What, exactly is the point of the &#8216;$&#8217; in PHP? &#8216;$&#8217; in Perl means scalar or reference (which essentially are the same), &#8216;@&#8217; means array, and &#8216;%&#8217; means hash. Meanwhile in PHP, there is no difference between arrays and hashes (perhaps not that confusing, until you try to guess how a half hash, half array data type iterates). With Ruby, CAPITAL_LETTERS means its a constant being defined. $ means the variable is global (no messing with a function or super array to make something global). A variable in_lower_case (often using ada style notation) means it is an instance variable, and will disappear outside the current lexical scope. @@ means the variable is a member of the current object being modified. Saves you five letters out of typing $this-&gt;.</p>
<p>The syntax is wonderfully designed. One just needs to understand it. Also, one needs to realize _everything_ in Ruby is an object. Even the number 5. hence code like the following make sense.</p>
<pre><code class="ruby">
# code untested... but a monkey should be able to figure out
# how to fix any syntax errors.
5.times do |x|
   print "Hello from the Ruby World"
end
</code></pre>]]></content:encoded>
	</item>
	<item>
		<title>By: liberx</title>
		<link>http://www.sitepoint.com/blogs/2005/12/15/ruby-on-rails-a-look-at-the-code/#comment-12680</link>
		<dc:creator>liberx</dc:creator>
		<pubDate>Fri, 13 Jan 2006 07:10:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/2005/12/15/ruby-on-rails-a-look-at-the-code/#comment-12680</guid>
		<description>Not having checked out RoR yet, this is a fantastic intro - and its similarities in concept with what I've done so far (despite underdevelopment) is uncanny - right down to the naming conventions!

I'll now have to check it out some more for sure, and perhaps some other frameworks "inspired by RoR" as well. Might just save a lot of time from reinventing the wheel yet again...</description>
		<content:encoded><![CDATA[<p>Not having checked out RoR yet, this is a fantastic intro - and its similarities in concept with what I&#8217;ve done so far (despite underdevelopment) is uncanny - right down to the naming conventions!</p>
<p>I&#8217;ll now have to check it out some more for sure, and perhaps some other frameworks &#8220;inspired by RoR&#8221; as well. Might just save a lot of time from reinventing the wheel yet again&#8230;</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Fenrir2</title>
		<link>http://www.sitepoint.com/blogs/2005/12/15/ruby-on-rails-a-look-at-the-code/#comment-12058</link>
		<dc:creator>Fenrir2</dc:creator>
		<pubDate>Fri, 16 Dec 2005 16:23:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/2005/12/15/ruby-on-rails-a-look-at-the-code/#comment-12058</guid>
		<description>&lt;blockquote&gt;unless there’s some config directive or similar that can override the default behavior.&lt;/blockquote&gt;
There is! An example of naming conventions:

&lt;pre&gt;&lt;code&gt;class User&lt;/code&gt;&lt;/pre&gt;

Because the classname is &lt;code&gt;User&lt;/code&gt; this will look for a table &lt;code&gt;users&lt;/code&gt;. But you can set your own table name:

&lt;pre&gt;&lt;code&gt;class User&lt;/code&gt;&lt;/pre&gt;

And you can even disable pluralization of classnames for tables or create your own pluralization rules (for another language for example).

But you can save a lot of typing if you use the default behavior.</description>
		<content:encoded><![CDATA[<blockquote><p>unless there’s some config directive or similar that can override the default behavior.</p></blockquote>
<p>There is! An example of naming conventions:</p>
<pre><code>class User</code></pre>
<p>Because the classname is <code>User</code> this will look for a table <code>users</code>. But you can set your own table name:</p>
<pre><code>class User</code></pre>
<p>And you can even disable pluralization of classnames for tables or create your own pluralization rules (for another language for example).</p>
<p>But you can save a lot of typing if you use the default behavior.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: virtualmice</title>
		<link>http://www.sitepoint.com/blogs/2005/12/15/ruby-on-rails-a-look-at-the-code/#comment-12055</link>
		<dc:creator>virtualmice</dc:creator>
		<pubDate>Fri, 16 Dec 2005 13:13:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/2005/12/15/ruby-on-rails-a-look-at-the-code/#comment-12055</guid>
		<description>Same sort of remarks :

After having developped my own PHP OO framework I discovered RoR.

RoR just happens to be what RefleXiveCMS (my baby) should have become, only way better and with a language (Ruby) you don't have to fight with for OO programming.

There is no looking back.</description>
		<content:encoded><![CDATA[<p>Same sort of remarks :</p>
<p>After having developped my own PHP OO framework I discovered RoR.</p>
<p>RoR just happens to be what RefleXiveCMS (my baby) should have become, only way better and with a language (Ruby) you don&#8217;t have to fight with for OO programming.</p>
<p>There is no looking back.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Tvienti</title>
		<link>http://www.sitepoint.com/blogs/2005/12/15/ruby-on-rails-a-look-at-the-code/#comment-12015</link>
		<dc:creator>Tvienti</dc:creator>
		<pubDate>Thu, 15 Dec 2005 20:12:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/2005/12/15/ruby-on-rails-a-look-at-the-code/#comment-12015</guid>
		<description>Nice intro.  I'm one more developer that's been vaguely aware of the hype of RoR, but I haven't yet had the time to really see what's going on.  This seems to solve a lot of problems that I've solved or tried to solve on my own with a homegrown PHP framework.  I'll persist the echo: the syntax makes me feel funny things in my tummy.

&lt;blockquote&gt;...but as long as you stick to the naming conventions ... that Rails is based on, it all just works!&lt;/blockquote&gt;

This line was a significant turn off to me.  I'm all about naming conventions, coding standards, I sometimes even get caught up deleting tabs in blank lines because I'm just a little OCD.  But I don't like the idea of something's functionality being dependant on naming conventions, unless there's some config directive or similar that can override the default behavior.

Other than that, this seems like a very interesting technology.  At the very least, it seems like it could crank out business-facing admin interfaces really quickly.

T</description>
		<content:encoded><![CDATA[<p>Nice intro.  I&#8217;m one more developer that&#8217;s been vaguely aware of the hype of RoR, but I haven&#8217;t yet had the time to really see what&#8217;s going on.  This seems to solve a lot of problems that I&#8217;ve solved or tried to solve on my own with a homegrown PHP framework.  I&#8217;ll persist the echo: the syntax makes me feel funny things in my tummy.</p>
<blockquote><p>&#8230;but as long as you stick to the naming conventions &#8230; that Rails is based on, it all just works!</p></blockquote>
<p>This line was a significant turn off to me.  I&#8217;m all about naming conventions, coding standards, I sometimes even get caught up deleting tabs in blank lines because I&#8217;m just a little OCD.  But I don&#8217;t like the idea of something&#8217;s functionality being dependant on naming conventions, unless there&#8217;s some config directive or similar that can override the default behavior.</p>
<p>Other than that, this seems like a very interesting technology.  At the very least, it seems like it could crank out business-facing admin interfaces really quickly.</p>
<p>T</p>]]></content:encoded>
	</item>
	<item>
		<title>By: hotgazpacho</title>
		<link>http://www.sitepoint.com/blogs/2005/12/15/ruby-on-rails-a-look-at-the-code/#comment-11994</link>
		<dc:creator>hotgazpacho</dc:creator>
		<pubDate>Thu, 15 Dec 2005 15:58:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/2005/12/15/ruby-on-rails-a-look-at-the-code/#comment-11994</guid>
		<description>I've been dabling in RoR for about a month now.  Yes, it was had to let go of the configuration files and all the PHP code, and trust in RoR.  It takes some getting used to for someone proficient in PHP, but I gotta say, I love it! One resource I have found particularly invaluable is the &lt;a href="http://wiki.rubyonrails.com/rails" rel="nofollow"&gt;RoR Wiki&lt;/a&gt;. All kinds of cool stuff, like &lt;a href="http://wiki.rubyonrails.com/rails/pages/Authentication" rel="nofollow"&gt;Authentication generator &lt;/a&gt; and &lt;a href="http://wiki.rubyonrails.com/rails/pages/LoginGeneratorAccessControlList" rel="nofollow"&gt;Access Control Lists&lt;/a&gt;.

RoR ROCKS!</description>
		<content:encoded><![CDATA[<p>I&#8217;ve been dabling in RoR for about a month now.  Yes, it was had to let go of the configuration files and all the PHP code, and trust in RoR.  It takes some getting used to for someone proficient in PHP, but I gotta say, I love it! One resource I have found particularly invaluable is the <a href="http://wiki.rubyonrails.com/rails" rel="nofollow">RoR Wiki</a>. All kinds of cool stuff, like <a href="http://wiki.rubyonrails.com/rails/pages/Authentication" rel="nofollow">Authentication generator </a> and <a href="http://wiki.rubyonrails.com/rails/pages/LoginGeneratorAccessControlList" rel="nofollow">Access Control Lists</a>.</p>
<p>RoR ROCKS!</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Adam A Flynn</title>
		<link>http://www.sitepoint.com/blogs/2005/12/15/ruby-on-rails-a-look-at-the-code/#comment-11990</link>
		<dc:creator>Adam A Flynn</dc:creator>
		<pubDate>Thu, 15 Dec 2005 15:12:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/2005/12/15/ruby-on-rails-a-look-at-the-code/#comment-11990</guid>
		<description>I'm still very skeptical of something like this, but, all the SitePoint attention it has gotten lately has put it on my list of things to tinker with. Who knows, maybe when I get down to actually working with it I'll change my mind.</description>
		<content:encoded><![CDATA[<p>I&#8217;m still very skeptical of something like this, but, all the SitePoint attention it has gotten lately has put it on my list of things to tinker with. Who knows, maybe when I get down to actually working with it I&#8217;ll change my mind.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Marc</title>
		<link>http://www.sitepoint.com/blogs/2005/12/15/ruby-on-rails-a-look-at-the-code/#comment-11960</link>
		<dc:creator>Marc</dc:creator>
		<pubDate>Thu, 15 Dec 2005 12:17:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/2005/12/15/ruby-on-rails-a-look-at-the-code/#comment-11960</guid>
		<description>Coming from a Java background, I too found it difficult at first to adapt to the code. I am especially having trouble letting go of the XML configuration files so inherent in J2EE.

&lt;blockquote&gt;However, I am still not convinced about RoR being more than a hype. I am still having a hard time on the Syntax. And I think more people will have to(sic) same problem.&lt;/blockquote&gt;

It *is* more than a hype, and whilst the syntax can be difficult to grasp especially for the more "traditional" coder, it shouldn't mean the death of the thing.

(Note I am not implying that this is the death of PHP or J2EE either. As many a wise programmer before me has stated; this is another tool for the toolbox)</description>
		<content:encoded><![CDATA[<p>Coming from a Java background, I too found it difficult at first to adapt to the code. I am especially having trouble letting go of the XML configuration files so inherent in J2EE.</p>
<blockquote><p>However, I am still not convinced about RoR being more than a hype. I am still having a hard time on the Syntax. And I think more people will have to(sic) same problem.</p></blockquote>
<p>It *is* more than a hype, and whilst the syntax can be difficult to grasp especially for the more &#8220;traditional&#8221; coder, it shouldn&#8217;t mean the death of the thing.</p>
<p>(Note I am not implying that this is the death of PHP or J2EE either. As many a wise programmer before me has stated; this is another tool for the toolbox)</p>]]></content:encoded>
	</item>
	<item>
		<title>By: JointFillah</title>
		<link>http://www.sitepoint.com/blogs/2005/12/15/ruby-on-rails-a-look-at-the-code/#comment-11958</link>
		<dc:creator>JointFillah</dc:creator>
		<pubDate>Thu, 15 Dec 2005 11:32:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/2005/12/15/ruby-on-rails-a-look-at-the-code/#comment-11958</guid>
		<description>Great blogpost!

Ofcourse I couldnot ignore the whole RubyOnRails hype the last few months, so I had a few looks at it. But first looks dazzled me. This post clarifies a lot. Tnx for that ;)

However, I am still not convinced about RoR being more than a hype. I am still having a hard time on the Syntax. And I think more people will have to same problem.

Because I am more used to PHP/Java syntax, I was looking for a little less abstract solution. I found one in a project pretty similar to RoR (for as far as I can see), but still with the 'easy' php OO syntax: &lt;a href="http://www.symfony-project.com/" rel="nofollow"&gt;Symfony&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Great blogpost!</p>
<p>Ofcourse I couldnot ignore the whole RubyOnRails hype the last few months, so I had a few looks at it. But first looks dazzled me. This post clarifies a lot. Tnx for that ;)</p>
<p>However, I am still not convinced about RoR being more than a hype. I am still having a hard time on the Syntax. And I think more people will have to same problem.</p>
<p>Because I am more used to PHP/Java syntax, I was looking for a little less abstract solution. I found one in a project pretty similar to RoR (for as far as I can see), but still with the &#8216;easy&#8217; php OO syntax: <a href="http://www.symfony-project.com/" rel="nofollow">Symfony</a></p>]]></content:encoded>
	</item>
</channel>
</rss>
