<?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: PHP&#8217;s function naming and argument order</title>
	<atom:link href="http://www.skyrocket.be/2009/05/30/php-function-naming-and-argument-order/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.skyrocket.be/2009/05/30/php-function-naming-and-argument-order/</link>
	<description>Chris Ramakers over webdesign, webdevelopment en webtrends</description>
	<lastBuildDate>Sun, 15 Aug 2010 17:33:02 +0200</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Time to clean up the PHP source code in version 6 &#124; Blog.feryn.eu</title>
		<link>http://www.skyrocket.be/2009/05/30/php-function-naming-and-argument-order/comment-page-1/#comment-199964</link>
		<dc:creator>Time to clean up the PHP source code in version 6 &#124; Blog.feryn.eu</dc:creator>
		<pubDate>Sun, 31 May 2009 18:02:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.skyrocket.be/?p=210#comment-199964</guid>
		<description>[...] read Chris&#8217; blog post and spread the word. Off course it&#8217;s the PHP developers who should share their opinion and if [...]</description>
		<content:encoded><![CDATA[<p>[...] read Chris&#8217; blog post and spread the word. Off course it&#8217;s the <abbr title="PHP: Hypertext Preprocessor">PHP</abbr> developers who should share their opinion and if [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris R.</title>
		<link>http://www.skyrocket.be/2009/05/30/php-function-naming-and-argument-order/comment-page-1/#comment-199956</link>
		<dc:creator>Chris R.</dc:creator>
		<pubDate>Sun, 31 May 2009 12:46:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.skyrocket.be/?p=210#comment-199956</guid>
		<description>@Rick - indeed fixing the functions themself might be a bad idea but the problems should be fixed, and I feel like now is the time. Wether a new set of functions get introduced or the old get altered to reflect the &#039;right&#039; argument order is something that needs to be discussed further since both have consequences.

But i wouldn&#039;t mind PHP switching to some kind of documenting technique like for example &lt;a href=&quot;http://extjs.com/learn/&quot; rel=&quot;nofollow&quot;&gt;ExtJS&lt;/a&gt; does where specific new documentation gets generated with each minor version release like 1.1, 2.0, 2.1 and 2.2 had. I can&#039;t count the times that I&#039;ve run into problems only to consult the docs and noticing that somewhere down the page it states that argument X only got added in PHP 5.2 and i&#039;m using 5.1.

I for example always know with what version of PHP i&#039;m working so if i&#039;m developing a project for 5.2 i&#039;d consult the 5.2 docs, if i&#039;m developing a project for 6 i&#039;d consult the 6 docs and know exactly what order the arguments would be in or what functions are depricated and what other functions to use.

That being said i&#039;d like to say that indeed for projects like let&#039;s say PhpMyAdmin backwards compatibility could be a major problem but hey ... how many project nowadays only work with PHP5? I don&#039;t see any problem releasing projects in the future that require PHP6 and the new, better function naming and argument order.

It&#039;s a tricky subject but with what I know now I&#039;d prefer just fixing the existing functions in 6 and support the 5 branch a little longer.</description>
		<content:encoded><![CDATA[<p>@Rick &#8211; indeed fixing the functions themself might be a bad idea but the problems should be fixed, and I feel like now is the time. Wether a new set of functions get introduced or the old get altered to reflect the &#8216;right&#8217; argument order is something that needs to be discussed further since both have consequences.</p>
<p>But i wouldn&#8217;t mind <abbr title="PHP: Hypertext Preprocessor">PHP</abbr> switching to some kind of documenting technique like for example <a href="http://extjs.com/learn/" rel="nofollow" class="extlink">ExtJS</a> does where specific new documentation gets generated with each minor version release like 1.1, 2.0, 2.1 and 2.2 had. I can&#8217;t count the times that I&#8217;ve run into problems only to consult the docs and noticing that somewhere down the page it states that argument X only got added in PHP 5.2 and i&#8217;m using 5.1.</p>
<p>I for example always know with what version of PHP i&#8217;m working so if i&#8217;m developing a project for 5.2 i&#8217;d consult the 5.2 docs, if i&#8217;m developing a project for 6 i&#8217;d consult the 6 docs and know exactly what order the arguments would be in or what functions are depricated and what other functions to use.</p>
<p>That being said i&#8217;d like to say that indeed for projects like let&#8217;s say PhpMyAdmin backwards compatibility could be a major problem but hey &#8230; how many project nowadays only work with PHP5? I don&#8217;t see any problem releasing projects in the future that require PHP6 and the new, better function naming and argument order.</p>
<p>It&#8217;s a tricky subject but with what I know now I&#8217;d prefer just fixing the existing functions in 6 and support the 5 branch a little longer.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rick</title>
		<link>http://www.skyrocket.be/2009/05/30/php-function-naming-and-argument-order/comment-page-1/#comment-199928</link>
		<dc:creator>Rick</dc:creator>
		<pubDate>Sat, 30 May 2009 23:13:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.skyrocket.be/?p=210#comment-199928</guid>
		<description>I think you&#039;re slightly misrepresenting Scott &amp; Derick&#039;s argument as far as argument order is concerned. They quite convincingly argued that it would break PHP5 code almost beyond repair, since in most cases there&#039;s no way of telling if the arguments have already been switched. 

If you see strstr($foo, $bar), there&#039;s no way to know if this was pre-PHP6 code that needs to be ported, or code written for or ported to PHP6. Unfortunately, not all variables in the real world are called $needle and $haystack... This will not just &quot;upset&quot; developers, it would become a large scale nightmare.

Personally, they&#039;ve convinced me why this at least is a very, very bad idea. I still believe we should get rid of these awful inconsistencies, and an alternative would be to deprecate the existing functions and introducing new ones. Even if &quot;deprecated&quot; means the old functions will be with us until PHP8, at least we could choose to ignore them.</description>
		<content:encoded><![CDATA[<p>I think you&#8217;re slightly misrepresenting Scott &amp; Derick&#8217;s argument as far as argument order is concerned. They quite convincingly argued that it would break PHP5 code almost beyond repair, since in most cases there&#8217;s no way of telling if the arguments have already been switched. </p>
<p>If you see strstr($foo, $bar), there&#8217;s no way to know if this was pre-PHP6 code that needs to be ported, or code written for or ported to PHP6. Unfortunately, not all variables in the real world are called $needle and $haystack&#8230; This will not just &#8220;upset&#8221; developers, it would become a large scale nightmare.</p>
<p>Personally, they&#8217;ve convinced me why this at least is a very, very bad idea. I still believe we should get rid of these awful inconsistencies, and an alternative would be to deprecate the existing functions and introducing new ones. Even if &#8220;deprecated&#8221; means the old functions will be with us until PHP8, at least we could choose to ignore them.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
