<?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: My list of PHP language features with hard-to-imagine-use-cases: #1 &#8211; The @ symbol that supresses errors</title>
	<atom:link href="http://www.aschroder.com/2008/11/my-list-of-php-language-features-with-hard-to-imagine-use-cases-1-the-symbol-that-supresses-errors/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.aschroder.com/2008/11/my-list-of-php-language-features-with-hard-to-imagine-use-cases-1-the-symbol-that-supresses-errors/</link>
	<description>Notes on Ecommerce Web Development</description>
	<lastBuildDate>Mon, 06 Feb 2012 20:02:07 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Ashley</title>
		<link>http://www.aschroder.com/2008/11/my-list-of-php-language-features-with-hard-to-imagine-use-cases-1-the-symbol-that-supresses-errors/comment-page-1/#comment-2313</link>
		<dc:creator>Ashley</dc:creator>
		<pubDate>Tue, 17 May 2011 22:10:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.aschroder.com/?p=8#comment-2313</guid>
		<description>Very old indeed! But you&#039;re right, plus I&#039;m not so scathing of PHP these days - still prefer Java though :)</description>
		<content:encoded><![CDATA[<p>Very old indeed! But you&#8217;re right, plus I&#8217;m not so scathing of PHP these days &#8211; still prefer Java though <img src='http://cdn.aschroder.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lee Saferite</title>
		<link>http://www.aschroder.com/2008/11/my-list-of-php-language-features-with-hard-to-imagine-use-cases-1-the-symbol-that-supresses-errors/comment-page-1/#comment-2309</link>
		<dc:creator>Lee Saferite</dc:creator>
		<pubDate>Tue, 17 May 2011 10:13:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.aschroder.com/?p=8#comment-2309</guid>
		<description>I know this is a REALLY old post, but I thought I&#039;d point out one thing.  While the usage of @ is bad, it&#039;s not as simple as replacing usages of it with a try/catch block.  

The @ is supressing PHP error messages which are not the same as exceptions. You can register an error handler that can throw exceptions, which is what Magento does, but it&#039;s not standard.

Any usage of the @ should include good error checking at the very least. In reality it should prompt a mental refactoring of what you are doing.</description>
		<content:encoded><![CDATA[<p>I know this is a REALLY old post, but I thought I&#8217;d point out one thing.  While the usage of @ is bad, it&#8217;s not as simple as replacing usages of it with a try/catch block.  </p>
<p>The @ is supressing PHP error messages which are not the same as exceptions. You can register an error handler that can throw exceptions, which is what Magento does, but it&#8217;s not standard.</p>
<p>Any usage of the @ should include good error checking at the very least. In reality it should prompt a mental refactoring of what you are doing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ashley</title>
		<link>http://www.aschroder.com/2008/11/my-list-of-php-language-features-with-hard-to-imagine-use-cases-1-the-symbol-that-supresses-errors/comment-page-1/#comment-1422</link>
		<dc:creator>Ashley</dc:creator>
		<pubDate>Fri, 11 Jun 2010 22:56:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.aschroder.com/?p=8#comment-1422</guid>
		<description>Thanks for the insightful comment Chris - it&#039;s easy to forget PHP has a long history and evolution to it&#039;s current state. Ironically I&#039;ve worked with it so long now, the coding in Java feels cumbersome (safe, but cumbersome).

Perhaps the answer is a &lt;del datetime=&quot;2010-06-11T22:50:26+00:00&quot;&gt;newer&lt;/del&gt; differently designed scripting language like ruby, all the benefits of simplicity and a modern OO architecture.

(according to wikipedia, both came about around the same time - who knew...)</description>
		<content:encoded><![CDATA[<p>Thanks for the insightful comment Chris &#8211; it&#8217;s easy to forget PHP has a long history and evolution to it&#8217;s current state. Ironically I&#8217;ve worked with it so long now, the coding in Java feels cumbersome (safe, but cumbersome).</p>
<p>Perhaps the answer is a <del datetime="2010-06-11T22:50:26+00:00">newer</del> differently designed scripting language like ruby, all the benefits of simplicity and a modern OO architecture.</p>
<p>(according to wikipedia, both came about around the same time &#8211; who knew&#8230;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Cox</title>
		<link>http://www.aschroder.com/2008/11/my-list-of-php-language-features-with-hard-to-imagine-use-cases-1-the-symbol-that-supresses-errors/comment-page-1/#comment-1421</link>
		<dc:creator>Chris Cox</dc:creator>
		<pubDate>Fri, 11 Jun 2010 15:46:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.aschroder.com/?p=8#comment-1421</guid>
		<description>Hi Ashley,

I appreciate that this is a very old post, but I thought I&#039;d throw in a clarification for the sake of other folks like me who might stumble across this. PHP wasn&#039;t developed as an OO language so I can see how it might not have made sense to someone with a Java background.

PHP has grown more or less organically from a simple procedural language and, apart from a very limited attempt to introduce OO constructs in PHP4, it wasn&#039;t until PHP5 that most of the things you take for granted appeared. Older language constructs are very slow to be deprecated for reasons of backward compatibility.

So from the viewpoint of writing a simple script on a webpage (which is PHP&#039;s origins) being able to suppress error messages is a good thing. Of course, now we have proper exception handling and all manner of other goodies the @ is a bit vestigial.</description>
		<content:encoded><![CDATA[<p>Hi Ashley,</p>
<p>I appreciate that this is a very old post, but I thought I&#8217;d throw in a clarification for the sake of other folks like me who might stumble across this. PHP wasn&#8217;t developed as an OO language so I can see how it might not have made sense to someone with a Java background.</p>
<p>PHP has grown more or less organically from a simple procedural language and, apart from a very limited attempt to introduce OO constructs in PHP4, it wasn&#8217;t until PHP5 that most of the things you take for granted appeared. Older language constructs are very slow to be deprecated for reasons of backward compatibility.</p>
<p>So from the viewpoint of writing a simple script on a webpage (which is PHP&#8217;s origins) being able to suppress error messages is a good thing. Of course, now we have proper exception handling and all manner of other goodies the @ is a bit vestigial.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced
Database Caching 1/8 queries in 0.013 seconds using apc
Object Caching 256/257 objects using apc
Content Delivery Network via cdn.aschroder.com

Served from: www.aschroder.com @ 2012-02-08 04:13:07 -->
