<?xml version="1.0" encoding="utf-8" ?>
<rss version="2.0"
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   >
<channel>
    <title>sklar.com/blog Comments</title>
    <link>http://www.sklar.com/blog/</link>
    <description>Comments from ...composed of an indefinite, perhaps infinite number of hexagonal galleries...</description>
    <dc:language>en</dc:language>
    <admin:errorReportsTo rdf:resource="mailto:web-blog@sklar.com" />
    <generator>Serendipity 0.8-beta1 - http://www.s9y.org/</generator>
    <pubDate>Mon, 12 May 2008 07:15:19 GMT</pubDate>

    <image>
        <url>http://www.sklar.com/blog/templates/sklar-sm/img/s9y_banner_small.png</url>
        <title>RSS: sklar.com/blog Comments - Comments from ...composed of an indefinite, perhaps infinite number of hexagonal galleries...</title>
        <link>http://www.sklar.com/blog/</link>
        <width>100</width>
        <height>21</height>
    </image>
<item>
    <title>: Prolific Name-Sources</title>
    <link>http://www.sklar.com/blog/archives/117-Prolific-Name-Sources.html</link>
<category></category>    <comments>http://www.sklar.com/blog/archives/117-Prolific-Name-Sources.html#comments</comments>
    <wfw:comment>http://www.sklar.com/blog/wfwcomment.php?cid=117</wfw:comment>
    <author>sklar@sklar.com (firebus)</author>
    <content:encoded>
A fuzzy-edged bucket (something you'd want to vomit into at burning man?) Is it just people with things named after them? Multiple things? All their names?&lt;br /&gt;
&lt;br /&gt;
I'd suggest Haile Selassie, nee Ras Tafari Mekonnen, since two names are concatenated in Rastafianism (although I guess Ras is really an honorific and not a name). That might be a fuzzy-edge case.    </content:encoded>
    <pubDate>Fri, 28 Mar 2008 19:01:36 -0400</pubDate>
    <guid isPermaLink="false">http://www.sklar.com/blog/archives/117-guid.html#c7212</guid>
    </item>
<item>
    <title>: Let a thousand string concatenations bloom</title>
    <link>http://www.sklar.com/blog/archives/116-Let-a-thousand-string-concatenations-bloom.html</link>
<category></category>    <comments>http://www.sklar.com/blog/archives/116-Let-a-thousand-string-concatenations-bloom.html#comments</comments>
    <wfw:comment>http://www.sklar.com/blog/wfwcomment.php?cid=116</wfw:comment>
    <author>adam@trachtenberg.com (Adam Trachtenberg)</author>
    <content:encoded>
I'm late to the party, but here's my offering:&lt;br /&gt;
&lt;br /&gt;
$alice = array_reduce(array($bob, $charlie), create_function('$a,$b', 'return &quot;$a$b&quot;;'));    </content:encoded>
    <pubDate>Sat, 01 Dec 2007 03:16:02 -0500</pubDate>
    <guid isPermaLink="false">http://www.sklar.com/blog/archives/116-guid.html#c7192</guid>
    </item>
<item>
    <title>: Let a thousand string concatenations bloom</title>
    <link>http://www.sklar.com/blog/archives/116-Let-a-thousand-string-concatenations-bloom.html</link>
<category></category>    <comments>http://www.sklar.com/blog/archives/116-Let-a-thousand-string-concatenations-bloom.html#comments</comments>
    <wfw:comment>http://www.sklar.com/blog/wfwcomment.php?cid=116</wfw:comment>
    <author>jorrit@ncode.nl (Jorrit Schippers)</author>
    <content:encoded>
I suggest using a web service for this &lt;img src=&quot;http://www.sklar.com/blog/templates/sklar-sm/img/emoticons/smile.png&quot; alt=&quot;:-)&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt;    </content:encoded>
    <pubDate>Mon, 19 Nov 2007 17:01:28 -0500</pubDate>
    <guid isPermaLink="false">http://www.sklar.com/blog/archives/116-guid.html#c7188</guid>
    </item>
<item>
    <title>: Let a thousand string concatenations bloom</title>
    <link>http://www.sklar.com/blog/archives/116-Let-a-thousand-string-concatenations-bloom.html</link>
<category></category>    <comments>http://www.sklar.com/blog/archives/116-Let-a-thousand-string-concatenations-bloom.html#comments</comments>
    <wfw:comment>http://www.sklar.com/blog/wfwcomment.php?cid=116</wfw:comment>
    <author>web-blog@sklar.com (David)</author>
    <content:encoded>
I think Russ's preg_replace() contraption has a certain amount of &quot;ridiculous, but not too ridiculous&quot; elegance, but the combination of using MySQL's CONCAT() function and then extract() in demiurg's I think takes the &quot;hilarious overkill&quot; prize!    </content:encoded>
    <pubDate>Thu, 15 Nov 2007 10:41:19 -0500</pubDate>
    <guid isPermaLink="false">http://www.sklar.com/blog/archives/116-guid.html#c7187</guid>
    </item>
<item>
    <title>: Let a thousand string concatenations bloom</title>
    <link>http://www.sklar.com/blog/archives/116-Let-a-thousand-string-concatenations-bloom.html</link>
<category></category>    <comments>http://www.sklar.com/blog/archives/116-Let-a-thousand-string-concatenations-bloom.html#comments</comments>
    <wfw:comment>http://www.sklar.com/blog/wfwcomment.php?cid=116</wfw:comment>
    <author>demiurg@gmail.com (demiurg)</author>
    <content:encoded>
oh, take my favourite one:&lt;br /&gt;
&lt;br /&gt;
$link = mysql_connect('localhost') or die(&quot;Can't connect&quot;);&lt;br /&gt;
${0} = mysql_select_db('mysql') or die(&quot;Can't select DB&quot;);&lt;br /&gt;
&lt;br /&gt;
$sql = &quot;SELECT CONCAT('&quot;.mysql_real_escape_string($a).&quot;', '&quot;.mysql_real_escape_string($b).&quot;') AS c&quot;;&lt;br /&gt;
$q = mysql_query($sql) or die(&quot;Can't query&quot;);&lt;br /&gt;
$D = mysql_fetch_assoc($q) or die(&quot;Can't get data&quot;);&lt;br /&gt;
extract($D);&lt;br /&gt;
&lt;br /&gt;
feel free to refactor that for your favourite framework =P&lt;br /&gt;
do I win? do I win?    </content:encoded>
    <pubDate>Wed, 14 Nov 2007 18:57:58 -0500</pubDate>
    <guid isPermaLink="false">http://www.sklar.com/blog/archives/116-guid.html#c7186</guid>
    </item>
<item>
    <title>: Let a thousand string concatenations bloom</title>
    <link>http://www.sklar.com/blog/archives/116-Let-a-thousand-string-concatenations-bloom.html</link>
<category></category>    <comments>http://www.sklar.com/blog/archives/116-Let-a-thousand-string-concatenations-bloom.html#comments</comments>
    <wfw:comment>http://www.sklar.com/blog/wfwcomment.php?cid=116</wfw:comment>
    <author>fa@codeschmie.de (fa)</author>
    <content:encoded>
I tried to benchmark&lt;br /&gt;
echo $a,$b;&lt;br /&gt;
vs.&lt;br /&gt;
echo $a.$b;&lt;br /&gt;
at one point and came to the conclusion that from a string length of 35-40 (and assuming $a and $b have about the same length that , starts to get faster.&lt;br /&gt;
&lt;br /&gt;
Not that I've ever seen an application that remotely would benefit from a fast echo/output &lt;img src=&quot;http://www.sklar.com/blog/templates/sklar-sm/img/emoticons/smile.png&quot; alt=&quot;:-)&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt;    </content:encoded>
    <pubDate>Wed, 14 Nov 2007 18:23:33 -0500</pubDate>
    <guid isPermaLink="false">http://www.sklar.com/blog/archives/116-guid.html#c7185</guid>
    </item>
<item>
    <title>: Let a thousand string concatenations bloom</title>
    <link>http://www.sklar.com/blog/archives/116-Let-a-thousand-string-concatenations-bloom.html</link>
<category></category>    <comments>http://www.sklar.com/blog/archives/116-Let-a-thousand-string-concatenations-bloom.html#comments</comments>
    <wfw:comment>http://www.sklar.com/blog/wfwcomment.php?cid=116</wfw:comment>
    <author>russ@firebus.com (firebus)</author>
    <content:encoded>
$alice = '';&lt;br /&gt;
$alice = preg_replace('/$/', $bob, $alice);&lt;br /&gt;
$alice = preg_replace('/$/', $charlie, $alice);    </content:encoded>
    <pubDate>Wed, 14 Nov 2007 17:47:42 -0500</pubDate>
    <guid isPermaLink="false">http://www.sklar.com/blog/archives/116-guid.html#c7184</guid>
    </item>
<item>
    <title>: Let a thousand string concatenations bloom</title>
    <link>http://www.sklar.com/blog/archives/116-Let-a-thousand-string-concatenations-bloom.html</link>
<category></category>    <comments>http://www.sklar.com/blog/archives/116-Let-a-thousand-string-concatenations-bloom.html#comments</comments>
    <wfw:comment>http://www.sklar.com/blog/wfwcomment.php?cid=116</wfw:comment>
    <author>brian@phorum.org (Brian Moon)</author>
    <content:encoded>
The last two are bit gratuitous but yeah, there are a lot of ways to do it.  FWIW, sprintf is fastest.    </content:encoded>
    <pubDate>Wed, 14 Nov 2007 17:40:35 -0500</pubDate>
    <guid isPermaLink="false">http://www.sklar.com/blog/archives/116-guid.html#c7183</guid>
    </item>
<item>
    <title>: DC PHP 2007 Slides</title>
    <link>http://www.sklar.com/blog/archives/115-DC-PHP-2007-Slides.html</link>
<category></category>    <comments>http://www.sklar.com/blog/archives/115-DC-PHP-2007-Slides.html#comments</comments>
    <wfw:comment>http://www.sklar.com/blog/wfwcomment.php?cid=115</wfw:comment>
    <author>quickshiftin@gmail.com (Nathan Nobbe)</author>
    <content:encoded>
Hi David,&lt;br /&gt;
first off let me say i really enjoyed your talk and took a lot home from it; very good stuff.&lt;br /&gt;
anyway i wanted to discuss with you the slide entitled 'Late Static Binding Workaround'.  recently there was a discussion on php-general (mailing list) regarding variable functions.&lt;br /&gt;
here somebody said the same thing you did in your presentation about php being able to resolve static method calls dynamically at runtime in php 5.3, but i believe support is there in 5.2.4.  i see from your slides that youre currently running php 5.2.3 so im not sure if support is there yet.  anyway the reason i didnt bring this up during the talk is the slide doesnt show the ideal code you would like to be able to run, but im guessing it looks something like this:&lt;br /&gt;
    $someClassName::staticClassMethod($args);&lt;br /&gt;
&lt;br /&gt;
the conversation on php-general prompted me to write a test script and i discovered there is such support under php 5.2.4 (perhaps earlier as well, but i havent tested other versions)&lt;br /&gt;
&lt;br /&gt;
anyway would you mind taking a look at the test script and telling me if thats the syntax you were looking for?  if it is you wont have to wait around for php 5.3 &lt;img src=&quot;http://www.sklar.com/blog/templates/sklar-sm/img/emoticons/wink.png&quot; alt=&quot;;-)&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
here is a stripped down version of the test script to highlight the ability to call static functions dynamically:&lt;br /&gt;
&lt;br /&gt;
-nathan&lt;br /&gt;
&lt;br /&gt;
ps.&lt;br /&gt;
i noticed you are filtering the php code  posted here; please see&lt;br /&gt;
http://www.nabble.com/Re%3A-Function-variables-in-classes-p13532946.html&lt;br /&gt;
&lt;br /&gt;
for the original post from the  mailing list.&lt;br /&gt;
&lt;br /&gt;
class Foo {&lt;br /&gt;
    static public function staticMethod() {&lt;br /&gt;
        echo &lt;u&gt;_METHOD_&lt;/u&gt; . PHP_EOL;&lt;br /&gt;
        var_dump(func_get_args());&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
$fooStr = 'Foo';&lt;br /&gt;
$fooStr::staticMethod('blah', 1, true);    </content:encoded>
    <pubDate>Tue, 13 Nov 2007 11:58:11 -0500</pubDate>
    <guid isPermaLink="false">http://www.sklar.com/blog/archives/115-guid.html#c7182</guid>
    </item>
<item>
    <title>: PHP 5, Xdebug 2, and KCachegrind on Windows</title>
    <link>http://www.sklar.com/blog/archives/42-PHP-5,-Xdebug-2,-and-KCachegrind-on-Windows.html</link>
<category></category>    <comments>http://www.sklar.com/blog/archives/42-PHP-5,-Xdebug-2,-and-KCachegrind-on-Windows.html#comments</comments>
    <wfw:comment>http://www.sklar.com/blog/wfwcomment.php?cid=42</wfw:comment>
    <author>peter@monicol.org.uk (Peter)</author>
    <content:encoded>
Did you manage to do this?    </content:encoded>
    <pubDate>Thu, 08 Nov 2007 13:35:34 -0500</pubDate>
    <guid isPermaLink="false">http://www.sklar.com/blog/archives/42-guid.html#c7180</guid>
    </item>
<item>
    <title>: PHP 5, Xdebug 2, and KCachegrind on Windows</title>
    <link>http://www.sklar.com/blog/archives/42-PHP-5,-Xdebug-2,-and-KCachegrind-on-Windows.html</link>
<category></category>    <comments>http://www.sklar.com/blog/archives/42-PHP-5,-Xdebug-2,-and-KCachegrind-on-Windows.html#comments</comments>
    <wfw:comment>http://www.sklar.com/blog/wfwcomment.php?cid=42</wfw:comment>
    <author>sklar@sklar.com (Andy)</author>
    <content:encoded>
&quot;KCacheGrind is in the kdesdk package.&quot;&lt;br /&gt;
&lt;br /&gt;
No, at least not anymore.&lt;br /&gt;
Only &quot;umbrello&quot; is in the kdesdk package included.&lt;br /&gt;
Gonna try to build kcachegrind from source then...    </content:encoded>
    <pubDate>Sun, 28 Oct 2007 10:03:23 -0400</pubDate>
    <guid isPermaLink="false">http://www.sklar.com/blog/archives/42-guid.html#c7179</guid>
    </item>
<item>
    <title>: API Design Talk Slides</title>
    <link>http://www.sklar.com/blog/archives/113-API-Design-Talk-Slides.html</link>
<category></category>    <comments>http://www.sklar.com/blog/archives/113-API-Design-Talk-Slides.html#comments</comments>
    <wfw:comment>http://www.sklar.com/blog/wfwcomment.php?cid=113</wfw:comment>
    <author>bakert@gmail.com (Thomas David Baker)</author>
    <content:encoded>
We need video!    </content:encoded>
    <pubDate>Sat, 13 Oct 2007 06:09:17 -0400</pubDate>
    <guid isPermaLink="false">http://www.sklar.com/blog/archives/113-guid.html#c7172</guid>
    </item>
<item>
    <title>: API Design Talk Slides</title>
    <link>http://www.sklar.com/blog/archives/113-API-Design-Talk-Slides.html</link>
<category></category>    <comments>http://www.sklar.com/blog/archives/113-API-Design-Talk-Slides.html#comments</comments>
    <wfw:comment>http://www.sklar.com/blog/wfwcomment.php?cid=113</wfw:comment>
    <author>jonathan.aquino@gmail.com (Jonathan Aquino)</author>
    <content:encoded>
Cool stuff! I enjoyed browsing through the slides.    </content:encoded>
    <pubDate>Sat, 13 Oct 2007 01:56:23 -0400</pubDate>
    <guid isPermaLink="false">http://www.sklar.com/blog/archives/113-guid.html#c7171</guid>
    </item>
<item>
    <title>: API Design in PHP at ZendCon 2007</title>
    <link>http://www.sklar.com/blog/archives/109-API-Design-in-PHP-at-ZendCon-2007.html</link>
<category></category>    <comments>http://www.sklar.com/blog/archives/109-API-Design-in-PHP-at-ZendCon-2007.html#comments</comments>
    <wfw:comment>http://www.sklar.com/blog/wfwcomment.php?cid=109</wfw:comment>
    <author>web-blog@sklar.com (David Sklar)</author>
    <content:encoded>
Hi, James. The slides are up at http://www.sklar.com/files/zendcon-2007-api-design.pdf    </content:encoded>
    <pubDate>Fri, 12 Oct 2007 13:49:29 -0400</pubDate>
    <guid isPermaLink="false">http://www.sklar.com/blog/archives/109-guid.html#c7168</guid>
    </item>
<item>
    <title>: API Design in PHP at ZendCon 2007</title>
    <link>http://www.sklar.com/blog/archives/109-API-Design-in-PHP-at-ZendCon-2007.html</link>
<category></category>    <comments>http://www.sklar.com/blog/archives/109-API-Design-in-PHP-at-ZendCon-2007.html#comments</comments>
    <wfw:comment>http://www.sklar.com/blog/wfwcomment.php?cid=109</wfw:comment>
    <author>james@mcglinn.org (James McGlinn)</author>
    <content:encoded>
Will the slides from your API Design talk at ZendCon be available online David?  I'd be interested to read them if you're going to make them available.    </content:encoded>
    <pubDate>Thu, 11 Oct 2007 22:31:06 -0400</pubDate>
    <guid isPermaLink="false">http://www.sklar.com/blog/archives/109-guid.html#c7167</guid>
    </item>
</channel>
</rss>
