<?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: Bad Signs &#8211; PHP&#8217;s &#8220;Shut Up&#8221; (@) Operator</title>
	<atom:link href="http://blog.eval.ca/2009/01/04/bad-signs-phps-shut-up-operator/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.eval.ca/2009/01/04/bad-signs-phps-shut-up-operator/</link>
	<description>Thoughts on Software and Other Things</description>
	<lastBuildDate>Wed, 07 Jul 2010 21:20:05 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: paul</title>
		<link>http://blog.eval.ca/2009/01/04/bad-signs-phps-shut-up-operator/comment-page-1/#comment-21</link>
		<dc:creator>paul</dc:creator>
		<pubDate>Tue, 06 Jan 2009 12:54:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.paulosman.com/?p=40#comment-21</guid>
		<description>Like I mentioned, the fact that exceptions didn&#039;t exist when a lot of the standard extension functions were written doesn&#039;t change the current reality and it still doesn&#039;t excuse an API writing to standard out (that particular &quot;rule&quot; of API design was understood by programmers of procedural languages too).

As for Spl, it&#039;s surely a step in the right direction but as of yet there has been no move to deprecate analogous standard extension functions like file() so it isn&#039;t technically &quot;legacy&quot; yet. file() was an easy example... there are plenty of other functions (i.e. chmod) whose functionality is not covered in Spl.

I think you hit the nail on the head describing PHP&#039;s function library as the swamp water of APIs.</description>
		<content:encoded><![CDATA[<p>Like I mentioned, the fact that exceptions didn&#8217;t exist when a lot of the standard extension functions were written doesn&#8217;t change the current reality and it still doesn&#8217;t excuse an API writing to standard out (that particular &#8220;rule&#8221; of API design was understood by programmers of procedural languages too).</p>
<p>As for Spl, it&#8217;s surely a step in the right direction but as of yet there has been no move to deprecate analogous standard extension functions like file() so it isn&#8217;t technically &#8220;legacy&#8221; yet. file() was an easy example&#8230; there are plenty of other functions (i.e. chmod) whose functionality is not covered in Spl.</p>
<p>I think you hit the nail on the head describing PHP&#8217;s function library as the swamp water of APIs.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stewart Lord</title>
		<link>http://blog.eval.ca/2009/01/04/bad-signs-phps-shut-up-operator/comment-page-1/#comment-20</link>
		<dc:creator>Stewart Lord</dc:creator>
		<pubDate>Mon, 05 Jan 2009 11:46:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.paulosman.com/?p=40#comment-20</guid>
		<description>&quot;[...] it&#039;s a hackish, band-aid fix to a much larger, much more worrisome problem: horrendous API design.&quot;

...well, that implies that there was some kind of intelligent design; whereas we all know that PHP&#039;s function library is like the swamp water of APIs. Not to mention the fact that PHP had no exceptions at the time that file() was written.

Let&#039;s just hope that one day the function library takes a back seat to the SPL. Hey, shouldn&#039;t you be using SplFileObject anyway!?!

Since you&#039;re so determined to use the legacy functions, would set_error_handler() not do the job?</description>
		<content:encoded><![CDATA[<p>&#8220;[...] it&#8217;s a hackish, band-aid fix to a much larger, much more worrisome problem: horrendous API design.&#8221;</p>
<p>&#8230;well, that implies that there was some kind of intelligent design; whereas we all know that PHP&#8217;s function library is like the swamp water of APIs. Not to mention the fact that PHP had no exceptions at the time that file() was written.</p>
<p>Let&#8217;s just hope that one day the function library takes a back seat to the SPL. Hey, shouldn&#8217;t you be using SplFileObject anyway!?!</p>
<p>Since you&#8217;re so determined to use the legacy functions, would set_error_handler() not do the job?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
