<?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: Programming without E_Notice</title>
	<atom:link href="http://www.102degrees.com/blog/2008/07/17/programming-without-e_notice/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.102degrees.com/blog/2008/07/17/programming-without-e_notice/</link>
	<description>Web Programming and Design by Aaron Saray</description>
	<pubDate>Tue, 06 Jan 2009 03:55:33 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: john.reeves</title>
		<link>http://www.102degrees.com/blog/2008/07/17/programming-without-e_notice/comment-page-1/#comment-720</link>
		<dc:creator>john.reeves</dc:creator>
		<pubDate>Fri, 18 Jul 2008 15:48:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.102degrees.com/blog/?p=144#comment-720</guid>
		<description>Python doesn't just warn you about that.  It dies.  And gives you a back trace!  But yes, I agree this stuff is important.  I didn't even think of the register globals reasons, but simply assuming a variable will be something BEFORE you even touch it is silly in large apps.  

I've also heard it suggested that when you are DONE with a variable, you should use unset() to get rid of it.  That way there is no confusion by future readers that you are done with that var and won't be using it later.  I don't know about that, but it sounds good.</description>
		<content:encoded><![CDATA[<p>Python doesn&#8217;t just warn you about that.  It dies.  And gives you a back trace!  But yes, I agree this stuff is important.  I didn&#8217;t even think of the register globals reasons, but simply assuming a variable will be something BEFORE you even touch it is silly in large apps.  </p>
<p>I&#8217;ve also heard it suggested that when you are DONE with a variable, you should use unset() to get rid of it.  That way there is no confusion by future readers that you are done with that var and won&#8217;t be using it later.  I don&#8217;t know about that, but it sounds good.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron</title>
		<link>http://www.102degrees.com/blog/2008/07/17/programming-without-e_notice/comment-page-1/#comment-719</link>
		<dc:creator>Aaron</dc:creator>
		<pubDate>Fri, 18 Jul 2008 15:45:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.102degrees.com/blog/?p=144#comment-719</guid>
		<description>@William: Hey - yep great tips - thanks for adding to the examples!

The point here is to show examples of what code MIGHT be happening, and how to not make it happen again.  

I would probably do it a different way - if it were my coding.  I wouldn't have a global functino for areTheyAdmin() - it would be part of a class, etc.  But yep - good points - its useful for the newer coders to understand that global variables are NOT the way to go. :)
-aaron</description>
		<content:encoded><![CDATA[<p>@William: Hey - yep great tips - thanks for adding to the examples!</p>
<p>The point here is to show examples of what code MIGHT be happening, and how to not make it happen again.  </p>
<p>I would probably do it a different way - if it were my coding.  I wouldn&#8217;t have a global functino for areTheyAdmin() - it would be part of a class, etc.  But yep - good points - its useful for the newer coders to understand that global variables are NOT the way to go. <img src='http://www.102degrees.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> -aaron</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: William</title>
		<link>http://www.102degrees.com/blog/2008/07/17/programming-without-e_notice/comment-page-1/#comment-717</link>
		<dc:creator>William</dc:creator>
		<pubDate>Fri, 18 Jul 2008 15:37:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.102degrees.com/blog/?p=144#comment-717</guid>
		<description>Hey!

   I would like to throw out this proposed solution.



That should exclude your E_NOTICE errors for variables.  Also, you have above this example:


.... With that, are you stating that $isAdmin is global?  Wouldn't you rather want one of the following:
$isAdmin = areTheyAdmin();
or:
areTheyAdmin(&#38;$isAdmin);

-Will</description>
		<content:encoded><![CDATA[<p>Hey!</p>
<p>   I would like to throw out this proposed solution.</p>
<p>That should exclude your E_NOTICE errors for variables.  Also, you have above this example:</p>
<p>&#8230;. With that, are you stating that $isAdmin is global?  Wouldn&#8217;t you rather want one of the following:<br />
$isAdmin = areTheyAdmin();<br />
or:<br />
areTheyAdmin(&amp;$isAdmin);</p>
<p>-Will</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.364 seconds -->
