<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Things that I hate about PHP</title>
	<atom:link href="http://www.guru.net.nz/blog/2008/06/things-that-i-hate-about-php.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.guru.net.nz/blog/2008/06/things-that-i-hate-about-php.html</link>
	<description>Random stuff from a Dunedin (NZ) based web developer, beer drinker and dad</description>
	<lastBuildDate>Sat, 04 Feb 2012 17:52:20 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Guru</title>
		<link>http://www.guru.net.nz/blog/2008/06/things-that-i-hate-about-php.html#comment-282</link>
		<dc:creator>Guru</dc:creator>
		<pubDate>Sat, 26 Jul 2008 06:19:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.guru.net.nz/newblog/?p=182#comment-282</guid>
		<description>Umm ... ok.</description>
		<content:encoded><![CDATA[<p>Umm &#8230; ok.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://www.guru.net.nz/blog/2008/06/things-that-i-hate-about-php.html#comment-281</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Sat, 26 Jul 2008 05:46:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.guru.net.nz/newblog/?p=182#comment-281</guid>
		<description>I know and they&#039;re still weird!  ;-P&lt;br/&gt;&lt;br/&gt;But whilst the post was interesting I&#039;d say that you could do a very similar thing to any language.  :)&lt;br/&gt;&lt;br/&gt;Easy pickings!  &gt;;-)&lt;br/&gt;&lt;br/&gt;Then again this comment is just the same!</description>
		<content:encoded><![CDATA[<p>I know and they&#39;re still weird!  ;-P</p>
<p>But whilst the post was interesting I&#39;d say that you could do a very similar thing to any language.  <img src='http://www.guru.net.nz/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Easy pickings!  &gt;;-)</p>
<p>Then again this comment is just the same!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: LoopyNZ</title>
		<link>http://www.guru.net.nz/blog/2008/06/things-that-i-hate-about-php.html#comment-272</link>
		<dc:creator>LoopyNZ</dc:creator>
		<pubDate>Fri, 27 Jun 2008 09:14:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.guru.net.nz/newblog/?p=182#comment-272</guid>
		<description>I don&#039;t know WHAT you guys are on about.</description>
		<content:encoded><![CDATA[<p>I don&#8217;t know WHAT you guys are on about.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gareth Redman</title>
		<link>http://www.guru.net.nz/blog/2008/06/things-that-i-hate-about-php.html#comment-271</link>
		<dc:creator>Gareth Redman</dc:creator>
		<pubDate>Thu, 26 Jun 2008 10:19:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.guru.net.nz/newblog/?p=182#comment-271</guid>
		<description>&lt;a HREF=&quot;http://enfranchisedmind.com/blog/2007/07/10/the-hole-in-the-middle-pattern/&quot; REL=&quot;nofollow&quot;&gt;This&lt;/a&gt; is what I was drunkenly trying to explain to your mate tonight.</description>
		<content:encoded><![CDATA[<p><a HREF="http://enfranchisedmind.com/blog/2007/07/10/the-hole-in-the-middle-pattern/" REL="nofollow">This</a> is what I was drunkenly trying to explain to your mate tonight.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gareth Redman</title>
		<link>http://www.guru.net.nz/blog/2008/06/things-that-i-hate-about-php.html#comment-269</link>
		<dc:creator>Gareth Redman</dc:creator>
		<pubDate>Wed, 25 Jun 2008 06:31:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.guru.net.nz/newblog/?p=182#comment-269</guid>
		<description>So, uh, are you coming up or what?</description>
		<content:encoded><![CDATA[<p>So, uh, are you coming up or what?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gareth Redman</title>
		<link>http://www.guru.net.nz/blog/2008/06/things-that-i-hate-about-php.html#comment-268</link>
		<dc:creator>Gareth Redman</dc:creator>
		<pubDate>Wed, 25 Jun 2008 06:25:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.guru.net.nz/newblog/?p=182#comment-268</guid>
		<description>I don&#039;t know, I just find interpolation easier to read.&lt;br/&gt;&lt;br/&gt;That create_function looks pretty dirty! It&#039;s a shame because lambda functions make a lot of patterns way clearer. For example, Ruby uses blocks (which are *almost* lambdas) for iterators and resource management, JavaScript uses them for events, and Smalltalk even uses them for conditionals.&lt;br/&gt;&lt;br/&gt;They make a lot of things possible without introducing new syntax to address every little thing. More importantly they empower developers instead of requiring changes to the language.</description>
		<content:encoded><![CDATA[<p>I don&#8217;t know, I just find interpolation easier to read.</p>
<p>That create_function looks pretty dirty! It&#8217;s a shame because lambda functions make a lot of patterns way clearer. For example, Ruby uses blocks (which are *almost* lambdas) for iterators and resource management, JavaScript uses them for events, and Smalltalk even uses them for conditionals.</p>
<p>They make a lot of things possible without introducing new syntax to address every little thing. More importantly they empower developers instead of requiring changes to the language.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Guru</title>
		<link>http://www.guru.net.nz/blog/2008/06/things-that-i-hate-about-php.html#comment-266</link>
		<dc:creator>Guru</dc:creator>
		<pubDate>Mon, 23 Jun 2008 11:31:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.guru.net.nz/newblog/?p=182#comment-266</guid>
		<description>Oh, and http://nz2.php.net/create_function ...</description>
		<content:encoded><![CDATA[<p>Oh, and <a href="http://nz2.php.net/create_function" rel="nofollow">http://nz2.php.net/create_function</a> &#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Guru</title>
		<link>http://www.guru.net.nz/blog/2008/06/things-that-i-hate-about-php.html#comment-265</link>
		<dc:creator>Guru</dc:creator>
		<pubDate>Mon, 23 Jun 2008 11:30:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.guru.net.nz/newblog/?p=182#comment-265</guid>
		<description>Hey G...&lt;br/&gt;&lt;br/&gt;I don&#039;t think there&#039;s anything native to prevent XSS but I suspect there&#039;ll be frameworks out there that will help with this.  Framework equals learning curve and vendor lock in and don&#039;t lend themselves to existing applications.  I haven&#039;t been brave enough to look too hard at any particular one yet.&lt;br/&gt;&lt;br/&gt;PHP has anonymous functions but no enclosures.  What I don&#039;t like about declaring the anonymous functions is that the function code must be specified as a string.  This sucks because you have to go escaping quotes etc.  Never had to use them.  Makes me feel slightly warmer than cold to know they&#039;ve got my back for some retarded situation.&lt;br/&gt;&lt;br/&gt;How would string interpolation in Java make your life so much better that it would be worth provebially springing someone&#039;s mortal coil?  it just feels like a convenience that is open to misunderstanding - remember that the &quot;you must be this high to ride&quot; sign for PHP is much lower than Java.</description>
		<content:encoded><![CDATA[<p>Hey G&#8230;</p>
<p>I don&#8217;t think there&#8217;s anything native to prevent XSS but I suspect there&#8217;ll be frameworks out there that will help with this.  Framework equals learning curve and vendor lock in and don&#8217;t lend themselves to existing applications.  I haven&#8217;t been brave enough to look too hard at any particular one yet.</p>
<p>PHP has anonymous functions but no enclosures.  What I don&#8217;t like about declaring the anonymous functions is that the function code must be specified as a string.  This sucks because you have to go escaping quotes etc.  Never had to use them.  Makes me feel slightly warmer than cold to know they&#8217;ve got my back for some retarded situation.</p>
<p>How would string interpolation in Java make your life so much better that it would be worth provebially springing someone&#8217;s mortal coil?  it just feels like a convenience that is open to misunderstanding &#8211; remember that the &#8220;you must be this high to ride&#8221; sign for PHP is much lower than Java.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gareth Redman</title>
		<link>http://www.guru.net.nz/blog/2008/06/things-that-i-hate-about-php.html#comment-264</link>
		<dc:creator>Gareth Redman</dc:creator>
		<pubDate>Mon, 23 Jun 2008 11:05:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.guru.net.nz/newblog/?p=182#comment-264</guid>
		<description>Good post!&lt;br/&gt;&lt;br/&gt;Given that PHP has builtin stuff for preventing SQL injection, does it have anything for XSS or is that just left up to developers to try and address?&lt;br/&gt;&lt;br/&gt;Also, &quot;with&quot; exists in JavaScript, but it&#039;s looked down upon because it&#039;s not always obvious which scope is being used. One (better) approach is to use an anonymous function, like &lt;b&gt;(function (baz) { /* do stuff with baz */})(foo.bar.baz)&lt;/b&gt;. If PHP has closures/anonymous functions/lambdas you might be able to do something similar.&lt;br/&gt;&lt;br/&gt;Aaaand, you&#039;re crazy for not liking string interpolation! I&#039;d kill to have that in Java!</description>
		<content:encoded><![CDATA[<p>Good post!</p>
<p>Given that PHP has builtin stuff for preventing SQL injection, does it have anything for XSS or is that just left up to developers to try and address?</p>
<p>Also, &#8220;with&#8221; exists in JavaScript, but it&#8217;s looked down upon because it&#8217;s not always obvious which scope is being used. One (better) approach is to use an anonymous function, like <b>(function (baz) { /* do stuff with baz */})(foo.bar.baz)</b>. If PHP has closures/anonymous functions/lambdas you might be able to do something similar.</p>
<p>Aaaand, you&#8217;re crazy for not liking string interpolation! I&#8217;d kill to have that in Java!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Guru</title>
		<link>http://www.guru.net.nz/blog/2008/06/things-that-i-hate-about-php.html#comment-262</link>
		<dc:creator>Guru</dc:creator>
		<pubDate>Fri, 20 Jun 2008 02:47:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.guru.net.nz/newblog/?p=182#comment-262</guid>
		<description>You should never have to stripslashes any data retrieved from a database call.  If you don&#039;t and you get extra backslashes in your strings it&#039;s because it was double escaped before it was put in there.  In one case I saw a system where the number of slashes in a string would continually grow on save - the &quot;fix&quot; was to run stripslashes in a loop!</description>
		<content:encoded><![CDATA[<p>You should never have to stripslashes any data retrieved from a database call.  If you don&#8217;t and you get extra backslashes in your strings it&#8217;s because it was double escaped before it was put in there.  In one case I saw a system where the number of slashes in a string would continually grow on save &#8211; the &#8220;fix&#8221; was to run stripslashes in a loop!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

