<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="/stylesheets/rss.css" type="text/css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>Plasmic Peach: Ruby is better than PHP</title>
    <link>http://plasmicpeach.com/articles/2007/09/09/ruby-is-better-than-php</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>The Momo Web Blog</description>
    <item>
      <title>Ruby is better than PHP</title>
      <description>&lt;p&gt;Lots of web developers use &lt;span class="caps"&gt;PHP&lt;/span&gt;.  It&amp;#8217;s an open source programming language and one of the most popular for making web sites.  We don&amp;#8217;t use it, though.  We use Ruby.&lt;/p&gt;


	&lt;p&gt;This is not an arbitrary choice, like preferring purple to green.  We use Ruby because it&amp;#8217;s better.  That&amp;#8217;s what we tell our clients when they ask why we use Ruby.  The next question is usually, &amp;#8220;What makes it better?&amp;#8221;&lt;/p&gt;&lt;p&gt;It&amp;#8217;s pretty hard to answer that question directly, because the reasons are all highly technical.  Instead, we say something such as, &amp;#8220;Ruby is like well-crafted writing.&amp;#8221;  Or, &amp;#8220;It&amp;#8217;s just better designed.&amp;#8221;  Both of them are true.  But how do you know we&amp;#8217;re right, and not just expressing our opinion?  Mightn&amp;#8217;t other people think that &lt;span class="caps"&gt;PHP&lt;/span&gt; is a better language than Ruby?&lt;/p&gt;


	&lt;p&gt;Actually, probably not.  What you&amp;#8217;ll find is that people who&amp;#8217;ve learned Ruby and also &lt;span class="caps"&gt;PHP&lt;/span&gt; nearly all think Ruby is better.  People who know &lt;span class="caps"&gt;PHP&lt;/span&gt; but not Ruby, or &lt;span class="caps"&gt;PHP&lt;/span&gt; and a little Ruby, might tell you that the two languages are equivalent.&lt;/p&gt;


	&lt;p&gt;When talking about any two programming languages used for the same purpose &amp;#8211; call them X and Y &amp;#8211; you&amp;#8217;ll find one of two things. 1: everyone will agree that X and Y are equivalent; or, 2: some people will say X is better than Y, and some people will say X and Y are equivalent.&lt;/p&gt;


	&lt;p&gt;What you almost never find is some people saying &amp;#8220;X is better than Y&amp;#8221;, and some saying &amp;#8220;Y is better than X&amp;#8221;.  Why not?  The reason is that X &lt;em&gt;really is&lt;/em&gt; better than Y &amp;#8211; it&amp;#8217;s a fact &amp;#8211; but you have to know how to program in X pretty well before you realise it.&lt;/p&gt;


	&lt;p&gt;The people who say X and Y are equivalent are Y programmers who can&amp;#8217;t understand the more advanced features of X.  To them, X just looks like another version of Y, with a bunch of other random stuff tacked on.  They don&amp;#8217;t say &amp;#8220;Y is better than X&amp;#8221;, because they can at least see that X can do everything Y can do.  What they can&amp;#8217;t see is what X can do that their language can&amp;#8217;t.&lt;/p&gt;


	&lt;p&gt;So if you find experienced Ruby programmers saying &amp;#8220;Ruby is better than &lt;span class="caps"&gt;PHP&lt;/span&gt;&amp;#8221;, and &lt;span class="caps"&gt;PHP&lt;/span&gt; programmers saying &amp;#8220;Ruby and &lt;span class="caps"&gt;PHP&lt;/span&gt; are equivalent&amp;#8221;, believe the Ruby guys.&lt;/p&gt;</description>
      <pubDate>Sun, 09 Sep 2007 10:18:00 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:c0bcb47b-0087-48a1-849b-ba9b0c846008</guid>
      <author>Momo</author>
      <link>http://plasmicpeach.com/articles/2007/09/09/ruby-is-better-than-php</link>
      <category>programming</category>
      <category>Ruby</category>
    </item>
  </channel>
</rss>
