<?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: Perl like temporary variables in PHP</title>
	<atom:link href="http://www.adaniels.nl/articles/temporary-variable/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.adaniels.nl/articles/temporary-variable/</link>
	<description>It's all about me, mysql and Einstein.</description>
	<lastBuildDate>Thu, 18 Mar 2010 00:07:50 +0100</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Antje Schipmann</title>
		<link>http://www.adaniels.nl/articles/temporary-variable/comment-page-1/#comment-214887</link>
		<dc:creator>Antje Schipmann</dc:creator>
		<pubDate>Mon, 22 Feb 2010 22:23:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.adaniels.nl/?p=58#comment-214887</guid>
		<description>I found this website by mistake, but you sure have a lot of useful PHP tips here. Great work Arnold! I&#039;m gonna look for your code

&lt;a title=&quot;
&quot; href=&quot;http://www.antjeschippmannsucks.com/&quot;&gt;Antje Schippmann&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>I found this website by mistake, but you sure have a lot of useful PHP tips here. Great work Arnold! I&#8217;m gonna look for your code</p>
<p><a title="<br />
" href="http://www.antjeschippmannsucks.com/">Antje Schippmann</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PHP coder</title>
		<link>http://www.adaniels.nl/articles/temporary-variable/comment-page-1/#comment-48662</link>
		<dc:creator>PHP coder</dc:creator>
		<pubDate>Wed, 20 Aug 2008 13:37:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.adaniels.nl/?p=58#comment-48662</guid>
		<description>It is interesting idea, but it can make script hard to understand for other people.

&lt;a href=&quot;http://doofy.ru&quot; rel=&quot;nofollow&quot;&gt;PHP coder&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>It is interesting idea, but it can make script hard to understand for other people.</p>
<p><a href="http://doofy.ru" rel="nofollow">PHP coder</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Victor</title>
		<link>http://www.adaniels.nl/articles/temporary-variable/comment-page-1/#comment-41595</link>
		<dc:creator>Victor</dc:creator>
		<pubDate>Sat, 02 Aug 2008 15:54:50 +0000</pubDate>
		<guid isPermaLink="false">http://blog.adaniels.nl/?p=58#comment-41595</guid>
		<description>thats a funky syntax you got there.
I&#039;d agree it might get deprecated in the next releases...

Victor
&lt;a title=&quot;
&quot; href=&quot;http://www.vodka-perfect.com/kosher-brandy/&quot;&gt;Kosher Brandy&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>thats a funky syntax you got there.<br />
I&#8217;d agree it might get deprecated in the next releases&#8230;</p>
<p>Victor<br />
<a title="<br />
" href="http://www.vodka-perfect.com/kosher-brandy/">Kosher Brandy</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard Heyes</title>
		<link>http://www.adaniels.nl/articles/temporary-variable/comment-page-1/#comment-8059</link>
		<dc:creator>Richard Heyes</dc:creator>
		<pubDate>Sat, 22 Dec 2007 19:20:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.adaniels.nl/?p=58#comment-8059</guid>
		<description>Ummm, just prefix the name with _tmp_... Much accessible and obvious. BTW, the ${} syntax isn&#039;t obscure or esoteric, it&#039;s simply the how you build variable names dynamically. It may well be less well known, but that doesn&#039;t mean it willl be going away.</description>
		<content:encoded><![CDATA[<p>Ummm, just prefix the name with _tmp_&#8230; Much accessible and obvious. BTW, the ${} syntax isn&#8217;t obscure or esoteric, it&#8217;s simply the how you build variable names dynamically. It may well be less well known, but that doesn&#8217;t mean it willl be going away.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arnold Daniels</title>
		<link>http://www.adaniels.nl/articles/temporary-variable/comment-page-1/#comment-5765</link>
		<dc:creator>Arnold Daniels</dc:creator>
		<pubDate>Fri, 09 Nov 2007 17:10:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.adaniels.nl/?p=58#comment-5765</guid>
		<description>The discussion of stopping it has been raised on the internals list, but there was a huge voice against it.

Using variable variables and functions is simply the fasted way (and cleanest in my opinion) to make flexible PHP apps. It is much faster than all the new magic, PHP has come up with. This was again &lt;a href=&quot;http://www.garfieldtech.com/blog/magic-benchmarks&quot; rel=&quot;nofollow&quot;&gt;confirmed by Larry Garfield&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p>The discussion of stopping it has been raised on the internals list, but there was a huge voice against it.</p>
<p>Using variable variables and functions is simply the fasted way (and cleanest in my opinion) to make flexible PHP apps. It is much faster than all the new magic, PHP has come up with. This was again <a href="http://www.garfieldtech.com/blog/magic-benchmarks" rel="nofollow">confirmed by Larry Garfield</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul</title>
		<link>http://www.adaniels.nl/articles/temporary-variable/comment-page-1/#comment-5764</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Fri, 09 Nov 2007 17:02:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.adaniels.nl/?p=58#comment-5764</guid>
		<description>Looks like you&#039;re taking advantage of a dark corner of PHP there. I wouldn&#039;t be surprised if a future version of PHP stops supporting this.</description>
		<content:encoded><![CDATA[<p>Looks like you&#8217;re taking advantage of a dark corner of PHP there. I wouldn&#8217;t be surprised if a future version of PHP stops supporting this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex Netkachov</title>
		<link>http://www.adaniels.nl/articles/temporary-variable/comment-page-1/#comment-5425</link>
		<dc:creator>Alex Netkachov</dc:creator>
		<pubDate>Fri, 02 Nov 2007 17:26:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.adaniels.nl/?p=58#comment-5425</guid>
		<description>Hello, Arnold.

I&#039;ve wrote a few more words about the subject :-)
http://www.alexatnet.com/node/100

Your feedback is welcome!</description>
		<content:encoded><![CDATA[<p>Hello, Arnold.</p>
<p>I&#8217;ve wrote a few more words about the subject <img src='http://www.adaniels.nl/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /><br />
<a href="http://www.alexatnet.com/node/100" rel="nofollow">http://www.alexatnet.com/node/100</a></p>
<p>Your feedback is welcome!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wez Furlong</title>
		<link>http://www.adaniels.nl/articles/temporary-variable/comment-page-1/#comment-5424</link>
		<dc:creator>Wez Furlong</dc:creator>
		<pubDate>Fri, 02 Nov 2007 17:19:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.adaniels.nl/?p=58#comment-5424</guid>
		<description>This only works until someone else uses the same technique with their code in the global scope.
Better to not use globals at all.</description>
		<content:encoded><![CDATA[<p>This only works until someone else uses the same technique with their code in the global scope.<br />
Better to not use globals at all.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arnold Daniels</title>
		<link>http://www.adaniels.nl/articles/temporary-variable/comment-page-1/#comment-5411</link>
		<dc:creator>Arnold Daniels</dc:creator>
		<pubDate>Fri, 02 Nov 2007 09:13:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.adaniels.nl/?p=58#comment-5411</guid>
		<description>Sure, it&#039;s good to have a model in most cases and use functions in other cases, but please don&#039;t take this overboard and start writing functions for the sake of writing functions. 

Personally I don&#039;t like the MVC stategy at all, and with me I think  a lot of others. I like a KISS principle. The requested page gets the necessary data, either from a model or some other method. The rest of the page functions as the template. With this method you still be perfectly managable in most projects. Using MVC just gives you a lot of overhead, which for most projects makes it far less managable, because you have a lot more code and a lot more files. Also, when you jump from A to X to W to B, its a lot more difficult for others to work with your code and for yourself to find bugs.

In most cases this means that there is some code in the global scope and this solutions will work nicely. You can&#039;t write programs based on which functionality might dissapear in the future. It has suggested on the internals list to change this behaviour once, only to replied by a big NO.

Also I often work on projects (like open source), which are not written by me. In the old days I would find me compelled to change a lot of code, because it wasn&#039;t pretty. Lucky those days are over.</description>
		<content:encoded><![CDATA[<p>Sure, it&#8217;s good to have a model in most cases and use functions in other cases, but please don&#8217;t take this overboard and start writing functions for the sake of writing functions. </p>
<p>Personally I don&#8217;t like the MVC stategy at all, and with me I think  a lot of others. I like a KISS principle. The requested page gets the necessary data, either from a model or some other method. The rest of the page functions as the template. With this method you still be perfectly managable in most projects. Using MVC just gives you a lot of overhead, which for most projects makes it far less managable, because you have a lot more code and a lot more files. Also, when you jump from A to X to W to B, its a lot more difficult for others to work with your code and for yourself to find bugs.</p>
<p>In most cases this means that there is some code in the global scope and this solutions will work nicely. You can&#8217;t write programs based on which functionality might dissapear in the future. It has suggested on the internals list to change this behaviour once, only to replied by a big NO.</p>
<p>Also I often work on projects (like open source), which are not written by me. In the old days I would find me compelled to change a lot of code, because it wasn&#8217;t pretty. Lucky those days are over.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Evert</title>
		<link>http://www.adaniels.nl/articles/temporary-variable/comment-page-1/#comment-5401</link>
		<dc:creator>Evert</dc:creator>
		<pubDate>Fri, 02 Nov 2007 03:15:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.adaniels.nl/?p=58#comment-5401</guid>
		<description>Why write in the global scope in the first place? This doesn&#039;t seem to make your code more maintainable at all..</description>
		<content:encoded><![CDATA[<p>Why write in the global scope in the first place? This doesn&#8217;t seem to make your code more maintainable at all..</p>
]]></content:encoded>
	</item>
</channel>
</rss>
