<?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: Reason to like PHP?</title>
	<atom:link href="http://www.sitepoint.com/blogs/2006/05/27/reason-to-like-php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sitepoint.com/blogs/2006/05/27/reason-to-like-php/</link>
	<description></description>
	<pubDate>Sat, 05 Jul 2008 21:38:20 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
		<item>
		<title>By: RaS!</title>
		<link>http://www.sitepoint.com/blogs/2006/05/27/reason-to-like-php/#comment-42518</link>
		<dc:creator>RaS!</dc:creator>
		<pubDate>Fri, 04 Aug 2006 09:10:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=1557#comment-42518</guid>
		<description>I've studied Ruby for 2 weeks. After my hair became green, I moved back to PHP. IMHO Ruby sucks.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve studied Ruby for 2 weeks. After my hair became green, I moved back to PHP. IMHO Ruby sucks.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: vedeney</title>
		<link>http://www.sitepoint.com/blogs/2006/05/27/reason-to-like-php/#comment-39130</link>
		<dc:creator>vedeney</dc:creator>
		<pubDate>Wed, 19 Jul 2006 10:31:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=1557#comment-39130</guid>
		<description>How do I check for a file's existense via ruby without using exceptions? :)</description>
		<content:encoded><![CDATA[<p>How do I check for a file&#8217;s existense via ruby without using exceptions? :)</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Judofyr</title>
		<link>http://www.sitepoint.com/blogs/2006/05/27/reason-to-like-php/#comment-29904</link>
		<dc:creator>Judofyr</dc:creator>
		<pubDate>Mon, 12 Jun 2006 06:24:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=1557#comment-29904</guid>
		<description>Is it possible to read a file over web in Ruby?</description>
		<content:encoded><![CDATA[<p>Is it possible to read a file over web in Ruby?</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Dickenson</title>
		<link>http://www.sitepoint.com/blogs/2006/05/27/reason-to-like-php/#comment-29777</link>
		<dc:creator>Mark Dickenson</dc:creator>
		<pubDate>Sat, 10 Jun 2006 18:06:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=1557#comment-29777</guid>
		<description>Change cleaner to confusing and I will agree. :D</description>
		<content:encoded><![CDATA[<p>Change cleaner to confusing and I will agree. :D</p>]]></content:encoded>
	</item>
	<item>
		<title>By: zjcboy</title>
		<link>http://www.sitepoint.com/blogs/2006/05/27/reason-to-like-php/#comment-29759</link>
		<dc:creator>zjcboy</dc:creator>
		<pubDate>Sat, 10 Jun 2006 11:18:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=1557#comment-29759</guid>
		<description>But I think in your example the Ruby code is cleaner AND shorter :)</description>
		<content:encoded><![CDATA[<p>But I think in your example the Ruby code is cleaner AND shorter :)</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Dickenson</title>
		<link>http://www.sitepoint.com/blogs/2006/05/27/reason-to-like-php/#comment-29738</link>
		<dc:creator>Mark Dickenson</dc:creator>
		<pubDate>Sat, 10 Jun 2006 06:40:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=1557#comment-29738</guid>
		<description>Well, Ruby is definately not cleaner code.  It seems to be designed to confuse people on purpose. :(</description>
		<content:encoded><![CDATA[<p>Well, Ruby is definately not cleaner code.  It seems to be designed to confuse people on purpose. :(</p>]]></content:encoded>
	</item>
	<item>
		<title>By: zjcboy</title>
		<link>http://www.sitepoint.com/blogs/2006/05/27/reason-to-like-php/#comment-29737</link>
		<dc:creator>zjcboy</dc:creator>
		<pubDate>Sat, 10 Jun 2006 05:48:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=1557#comment-29737</guid>
		<description>Or state it another way:

"clean" reduces the headache to understand the code
"short" reduces the boredom to understand the code

and when the two conflict, choose "clean" first, because boredom is better than headache  :)</description>
		<content:encoded><![CDATA[<p>Or state it another way:</p>
<p>&#8220;clean&#8221; reduces the headache to understand the code<br />
&#8220;short&#8221; reduces the boredom to understand the code</p>
<p>and when the two conflict, choose &#8220;clean&#8221; first, because boredom is better than headache  :)</p>]]></content:encoded>
	</item>
	<item>
		<title>By: zjcboy</title>
		<link>http://www.sitepoint.com/blogs/2006/05/27/reason-to-like-php/#comment-29736</link>
		<dc:creator>zjcboy</dc:creator>
		<pubDate>Sat, 10 Jun 2006 05:41:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=1557#comment-29736</guid>
		<description>No no no~, I didn't say "shorter = cleaner", I said the Ruby code is "shorter AND cleaner". The point is "cleaner". Given two pieces of "clean code", the "shorter" one is preferred.</description>
		<content:encoded><![CDATA[<p>No no no~, I didn&#8217;t say &#8220;shorter = cleaner&#8221;, I said the Ruby code is &#8220;shorter AND cleaner&#8221;. The point is &#8220;cleaner&#8221;. Given two pieces of &#8220;clean code&#8221;, the &#8220;shorter&#8221; one is preferred.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Benjymouse</title>
		<link>http://www.sitepoint.com/blogs/2006/05/27/reason-to-like-php/#comment-29680</link>
		<dc:creator>Benjymouse</dc:creator>
		<pubDate>Fri, 09 Jun 2006 18:32:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=1557#comment-29680</guid>
		<description>I for did not claim that shorter is better. That's not an absolute. But the claim has some merit to it, because &lt;em&gt;simpler&lt;/em&gt; is better, and shorter is often &lt;em&gt;simpler&lt;/em&gt;.

In your samples, the ruby version is hands down simpler. It's not that the PHP version is longer, it is the fact that it includes script code in string literal, passed to a function which parses and executes a function?

The ruby version simple makes use of the built-in map algorithm. No extra parsing. To the point. And yes, shorter.

I've never programmed in ruby, but I do have experience with a lot of other languages. I don't need to know every detail of ruby to recognize it a a very clean language (although I generally dislikes weakly typed/dynamically typed languages).</description>
		<content:encoded><![CDATA[<p>I for did not claim that shorter is better. That&#8217;s not an absolute. But the claim has some merit to it, because <em>simpler</em> is better, and shorter is often <em>simpler</em>.</p>
<p>In your samples, the ruby version is hands down simpler. It&#8217;s not that the PHP version is longer, it is the fact that it includes script code in string literal, passed to a function which parses and executes a function?</p>
<p>The ruby version simple makes use of the built-in map algorithm. No extra parsing. To the point. And yes, shorter.</p>
<p>I&#8217;ve never programmed in ruby, but I do have experience with a lot of other languages. I don&#8217;t need to know every detail of ruby to recognize it a a very clean language (although I generally dislikes weakly typed/dynamically typed languages).</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Dickenson</title>
		<link>http://www.sitepoint.com/blogs/2006/05/27/reason-to-like-php/#comment-29679</link>
		<dc:creator>Mark Dickenson</dc:creator>
		<pubDate>Fri, 09 Jun 2006 18:13:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=1557#comment-29679</guid>
		<description>To me the Ruby code is about as obscure as you can get and I have been programming in a number of languages since the late 1970's.

Just because it is shorter doesn't make it cleaner.  In most cases the shorter it is the more confusing and obscure it will be.  It also doesn't mean it is any faster. :)  I have seen some very short code that is slow and ponderous compared to code that is longer and easier to understand while being faster.

Just saying it is shorter makes it better is a misnomer when it comes to programming languages.  I can make some very small code that is a pain for anyone to decipher.

When I look at anything written with Ruby I get the impression the language was created by someone with a bad case of dyslexia.  

At the least, someone trying to pull a prank on programmers by making a language that isn't that logical while using syntax that fosters more than a little obfuscation.</description>
		<content:encoded><![CDATA[<p>To me the Ruby code is about as obscure as you can get and I have been programming in a number of languages since the late 1970&#8217;s.</p>
<p>Just because it is shorter doesn&#8217;t make it cleaner.  In most cases the shorter it is the more confusing and obscure it will be.  It also doesn&#8217;t mean it is any faster. :)  I have seen some very short code that is slow and ponderous compared to code that is longer and easier to understand while being faster.</p>
<p>Just saying it is shorter makes it better is a misnomer when it comes to programming languages.  I can make some very small code that is a pain for anyone to decipher.</p>
<p>When I look at anything written with Ruby I get the impression the language was created by someone with a bad case of dyslexia.  </p>
<p>At the least, someone trying to pull a prank on programmers by making a language that isn&#8217;t that logical while using syntax that fosters more than a little obfuscation.</p>]]></content:encoded>
	</item>
</channel>
</rss>
