<?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: What I learned of PHP by ignoring it for three months</title>
	<atom:link href="http://swizec.com/blog/what-i-learned-of-php-by-ignoring-it-for-three-months/swizec/782/feed" rel="self" type="application/rss+xml" />
	<link>http://swizec.com/blog/what-i-learned-of-php-by-ignoring-it-for-three-months/swizec/782</link>
	<description>Drinker of tea</description>
	<lastBuildDate>Tue, 22 May 2012 14:16:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Jan Hancic</title>
		<link>http://swizec.com/blog/what-i-learned-of-php-by-ignoring-it-for-three-months/swizec/782/comment-page-1#comment-2024</link>
		<dc:creator>Jan Hancic</dc:creator>
		<pubDate>Fri, 30 Oct 2009 09:38:29 +0000</pubDate>
		<guid isPermaLink="false">http://swizec.com/blog/?p=782#comment-2024</guid>
		<description>Ok admin told me that PHP 5.3 is not yet available for BSD which we use. It&#039;s still being ported :S
Once it is we&#039;ll upgrade at once ...</description>
		<content:encoded><![CDATA[<p>Ok admin told me that PHP 5.3 is not yet available for BSD which we use. It&#8217;s still being ported :S<br />
Once it is we&#8217;ll upgrade at once &#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jan Hancic</title>
		<link>http://swizec.com/blog/what-i-learned-of-php-by-ignoring-it-for-three-months/swizec/782/comment-page-1#comment-2023</link>
		<dc:creator>Jan Hancic</dc:creator>
		<pubDate>Fri, 30 Oct 2009 09:34:00 +0000</pubDate>
		<guid isPermaLink="false">http://swizec.com/blog/?p=782#comment-2023</guid>
		<description>Oh and PHP wizards have no intentions of implementing $obj-&gt;Method ()[0]

there is a thread in their bug tracker (under feature requests) and they said that they won&#039;t do it. Don&#039;t know why though ...</description>
		<content:encoded><![CDATA[<p>Oh and PHP wizards have no intentions of implementing $obj-&gt;Method ()[0]</p>
<p>there is a thread in their bug tracker (under feature requests) and they said that they won&#8217;t do it. Don&#8217;t know why though &#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jan Hancic</title>
		<link>http://swizec.com/blog/what-i-learned-of-php-by-ignoring-it-for-three-months/swizec/782/comment-page-1#comment-2022</link>
		<dc:creator>Jan Hancic</dc:creator>
		<pubDate>Fri, 30 Oct 2009 09:25:12 +0000</pubDate>
		<guid isPermaLink="false">http://swizec.com/blog/?p=782#comment-2022</guid>
		<description>God dammit I thought we ware running 5.3 on our servers, looks like we have 5.2
I will tell our admins to upgrade ASAP so you can play with the new features ...</description>
		<content:encoded><![CDATA[<p>God dammit I thought we ware running 5.3 on our servers, looks like we have 5.2<br />
I will tell our admins to upgrade ASAP so you can play with the new features &#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gasper_k</title>
		<link>http://swizec.com/blog/what-i-learned-of-php-by-ignoring-it-for-three-months/swizec/782/comment-page-1#comment-2015</link>
		<dc:creator>gasper_k</dc:creator>
		<pubDate>Sat, 24 Oct 2009 12:59:47 +0000</pubDate>
		<guid isPermaLink="false">http://swizec.com/blog/?p=782#comment-2015</guid>
		<description>&gt; Seriously, the $obj-&gt;method()-&gt;method() is already possible? I didn’t know that, cool :D

Yes, since 5.0.0 (July 2004). :D</description>
		<content:encoded><![CDATA[<p>&gt; Seriously, the $obj-&gt;method()-&gt;method() is already possible? I didn’t know that, cool <img src="http://swizec.com/blog/wp-includes/images/smilies/icon_biggrin.gif?1d5d3d" alt=':D' class='wp-smiley' /> </p>
<p>Yes, since 5.0.0 (July 2004). <img src="http://swizec.com/blog/wp-includes/images/smilies/icon_biggrin.gif?1d5d3d" alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: swizec</title>
		<link>http://swizec.com/blog/what-i-learned-of-php-by-ignoring-it-for-three-months/swizec/782/comment-page-1#comment-2014</link>
		<dc:creator>swizec</dc:creator>
		<pubDate>Sat, 24 Oct 2009 11:00:44 +0000</pubDate>
		<guid isPermaLink="false">http://swizec.com/blog/?p=782#comment-2014</guid>
		<description>Seriously, the $obj-&gt;method()-&gt;method() is already possible? I didn&#039;t know that, cool :D

As for the second poing, yeah you could do the associative array but just look at all the semantic fluff around that. WHY!? I&#039;d much rather just define an array as [1,2,3] thankyouverymuch :)

Yep I&#039;ve used associative arrays to get around named arguments, but, again, it just makes the code incredibly fugly.

Well I guess we agree on the need for object literals (although if it could be expanded to support arrays in such a manner it&#039;d be even better) and ... well as for everything else, guess I can&#039;t wait for 5.3 then. Looks like it&#039;s going to be a big step forward.</description>
		<content:encoded><![CDATA[<p>Seriously, the $obj-&gt;method()-&gt;method() is already possible? I didn&#8217;t know that, cool <img src="http://swizec.com/blog/wp-includes/images/smilies/icon_biggrin.gif?1d5d3d" alt=':D' class='wp-smiley' /> </p>
<p>As for the second poing, yeah you could do the associative array but just look at all the semantic fluff around that. WHY!? I&#8217;d much rather just define an array as [1,2,3] thankyouverymuch <img src="http://swizec.com/blog/wp-includes/images/smilies/icon_smile.gif?1d5d3d" alt=':)' class='wp-smiley' /> </p>
<p>Yep I&#8217;ve used associative arrays to get around named arguments, but, again, it just makes the code incredibly fugly.</p>
<p>Well I guess we agree on the need for object literals (although if it could be expanded to support arrays in such a manner it&#8217;d be even better) and &#8230; well as for everything else, guess I can&#8217;t wait for 5.3 then. Looks like it&#8217;s going to be a big step forward.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gasper_k</title>
		<link>http://swizec.com/blog/what-i-learned-of-php-by-ignoring-it-for-three-months/swizec/782/comment-page-1#comment-2013</link>
		<dc:creator>gasper_k</dc:creator>
		<pubDate>Sat, 24 Oct 2009 10:52:35 +0000</pubDate>
		<guid isPermaLink="false">http://swizec.com/blog/?p=782#comment-2013</guid>
		<description>you need to clarify your point 1, because I&#039;m not sure what you mean:
  - &quot;you can use objects right out of a function&quot;. It&#039;s already possible to do $obj-&gt;method()-&gt;anothermethod(); and I think with 5.3 it&#039;s also possible to do new Object()-&gt;method(). Not sure, though.
  - &quot;&quot; . $object calls __toString() on object
  - and I think getRows()[0] is possible with 5.3, although I&#039;m again not sure.

I may also be misunderstanding the second point, because I don&#039;t really see an issue with &quot;Why can’t I do a return { x: 0, y: 100 }? Or something like that?&quot;, you can do &quot;something like that&quot; with array(&#039;x&#039; =&gt; 0, &#039;y&#039; =&gt; 100), which can be passed as an argument and whatnot.

I&#039;ve rarely used named arguments in Python, so I think it&#039;s a decent shortcut, but not a big deal. I think I missed it only once or twice in PHP, and the first time I went with associative arrays to go around it, the second time I just used the ordinary named arguments, because it&#039;s not really worth bothering. :)

The things I&#039;ve missed the most are object literals (hopefully we&#039;ll get these soon), anonymous functions (coming with 5.3 yay!), and namespaces (5.3). I don&#039;t like long named classes, so namespaces are very good for organizing the code, and I really hate that I have to specify a function every time I want to have a callback. So, again, yay. :)

btw, livenetlife steals focus from input boxes. annoying.</description>
		<content:encoded><![CDATA[<p>you need to clarify your point 1, because I&#8217;m not sure what you mean:<br />
  &#8211; &#8220;you can use objects right out of a function&#8221;. It&#8217;s already possible to do $obj-&gt;method()-&gt;anothermethod(); and I think with 5.3 it&#8217;s also possible to do new Object()-&gt;method(). Not sure, though.<br />
  &#8211; &#8220;&#8221; . $object calls __toString() on object<br />
  &#8211; and I think getRows()[0] is possible with 5.3, although I&#8217;m again not sure.</p>
<p>I may also be misunderstanding the second point, because I don&#8217;t really see an issue with &#8220;Why can’t I do a return { x: 0, y: 100 }? Or something like that?&#8221;, you can do &#8220;something like that&#8221; with array(&#8216;x&#8217; =&gt; 0, &#8216;y&#8217; =&gt; 100), which can be passed as an argument and whatnot.</p>
<p>I&#8217;ve rarely used named arguments in Python, so I think it&#8217;s a decent shortcut, but not a big deal. I think I missed it only once or twice in PHP, and the first time I went with associative arrays to go around it, the second time I just used the ordinary named arguments, because it&#8217;s not really worth bothering. <img src="http://swizec.com/blog/wp-includes/images/smilies/icon_smile.gif?1d5d3d" alt=':)' class='wp-smiley' /> </p>
<p>The things I&#8217;ve missed the most are object literals (hopefully we&#8217;ll get these soon), anonymous functions (coming with 5.3 yay!), and namespaces (5.3). I don&#8217;t like long named classes, so namespaces are very good for organizing the code, and I really hate that I have to specify a function every time I want to have a callback. So, again, yay. <img src="http://swizec.com/blog/wp-includes/images/smilies/icon_smile.gif?1d5d3d" alt=':)' class='wp-smiley' /> </p>
<p>btw, livenetlife steals focus from input boxes. annoying.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: swizec</title>
		<link>http://swizec.com/blog/what-i-learned-of-php-by-ignoring-it-for-three-months/swizec/782/comment-page-1#comment-2010</link>
		<dc:creator>swizec</dc:creator>
		<pubDate>Fri, 23 Oct 2009 16:01:13 +0000</pubDate>
		<guid isPermaLink="false">http://swizec.com/blog/?p=782#comment-2010</guid>
		<description>Navadil sem se na netu po anglesk pisat :D

V glavnem to kar pravis, da sem spregledal je &quot;keyword arguments&quot;, tretja tocka.

Ostale tocke pa ne pokriva samo javascript, pokrivajo jih prakticno vsi razen PHP.

=== nearly equivalent translation for others ===

What you&#039;re saying I missed is called &quot;keyword arguments&quot; and is covered under bullet point #3, and everything else isn&#039;t just a feature of Javascript, but rather pretty much any language other than PHP that I&#039;ve tried.</description>
		<content:encoded><![CDATA[<p>Navadil sem se na netu po anglesk pisat <img src="http://swizec.com/blog/wp-includes/images/smilies/icon_biggrin.gif?1d5d3d" alt=':D' class='wp-smiley' /> </p>
<p>V glavnem to kar pravis, da sem spregledal je &#8220;keyword arguments&#8221;, tretja tocka.</p>
<p>Ostale tocke pa ne pokriva samo javascript, pokrivajo jih prakticno vsi razen PHP.</p>
<p>=== nearly equivalent translation for others ===</p>
<p>What you&#8217;re saying I missed is called &#8220;keyword arguments&#8221; and is covered under bullet point #3, and everything else isn&#8217;t just a feature of Javascript, but rather pretty much any language other than PHP that I&#8217;ve tried.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Boštjan</title>
		<link>http://swizec.com/blog/what-i-learned-of-php-by-ignoring-it-for-three-months/swizec/782/comment-page-1#comment-2009</link>
		<dc:creator>Boštjan</dc:creator>
		<pubDate>Fri, 23 Oct 2009 15:47:01 +0000</pubDate>
		<guid isPermaLink="false">http://swizec.com/blog/?p=782#comment-2009</guid>
		<description>I see you like javascript :)

There&#039;s something you missed, but it&#039;s more a wish than a real problem:

function something(string $a, int $b, array $c, (anything if not specified) $d)

It would be nice if it worked :)

Ma ne morš u slovenš?ini napisat da se morm jst kle zajebavat s svojo slabo angleš?ino ane.</description>
		<content:encoded><![CDATA[<p>I see you like javascript <img src="http://swizec.com/blog/wp-includes/images/smilies/icon_smile.gif?1d5d3d" alt=':)' class='wp-smiley' /> </p>
<p>There&#8217;s something you missed, but it&#8217;s more a wish than a real problem:</p>
<p>function something(string $a, int $b, array $c, (anything if not specified) $d)</p>
<p>It would be nice if it worked <img src="http://swizec.com/blog/wp-includes/images/smilies/icon_smile.gif?1d5d3d" alt=':)' class='wp-smiley' /> </p>
<p>Ma ne morš u slovenš?ini napisat da se morm jst kle zajebavat s svojo slabo angleš?ino ane.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Served from: www.swizec.com @ 2012-05-23 02:46:11 by W3 Total Cache -->
