<?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 for Davey Shafik</title>
	<atom:link href="http://daveyshafik.com/comments/feed" rel="self" type="application/rss+xml" />
	<link>http://daveyshafik.com</link>
	<description>As close to my brain as you can safely get...</description>
	<lastBuildDate>Wed, 25 Apr 2012 12:06:55 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>Comment on Mimetypes (and APIs) by John Congdon</title>
		<link>http://daveyshafik.com/archives/35507-mimetypes-and-apis.html/comment-page-1#comment-1467</link>
		<dc:creator>John Congdon</dc:creator>
		<pubDate>Wed, 25 Apr 2012 12:06:55 +0000</pubDate>
		<guid isPermaLink="false">http://daveyshafik.com/?p=35507#comment-1467</guid>
		<description>I like these concepts and they make great sense.  I have been learning lately to be more exact in meaning and not make assumptions.  It&#039;s so easy to assume that things will always work a certain way, but what if &quot;they&quot; change something.  What if you want to change something?

Being a little more verbose is not a bad thing, and can lead to more flexibility down the road when you least expect it.

Thanks for sharing and giving me a new perspective.</description>
		<content:encoded><![CDATA[<p>I like these concepts and they make great sense.  I have been learning lately to be more exact in meaning and not make assumptions.  It&#8217;s so easy to assume that things will always work a certain way, but what if &#8220;they&#8221; change something.  What if you want to change something?</p>
<p>Being a little more verbose is not a bad thing, and can lead to more flexibility down the road when you least expect it.</p>
<p>Thanks for sharing and giving me a new perspective.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on The Closure Puzzle by Lee Davis</title>
		<link>http://daveyshafik.com/archives/32789-the-closure-puzzle.html/comment-page-1#comment-1182</link>
		<dc:creator>Lee Davis</dc:creator>
		<pubDate>Mon, 16 Jan 2012 12:52:31 +0000</pubDate>
		<guid isPermaLink="false">http://daveyshafik.com/?p=32789#comment-1182</guid>
		<description>Despite the explaination of what its doing, am I the only one thinking _why_ is it doing this? Is this really a good feature? What benefits does binding closures to a new scope really give? And do the benefits really outweight the risks?

When managing a highly layered application its comforting to know that solid API&#039;s (which may contain final / private methods) can encapsulate behaviours within themselves. I know the Protected vs Private debate has been iterated more times that i&#039;d like to mention, but I still feel there is a place for private scope and seeing more features that allow you to break it concerns me.

I can appreciate the common retort of &quot;well if someone has access to the code they can do what they want&quot;. This is true, but as release manager you may take comfort in the fact that certain core layers of the application aren&#039;t touched on a commit, and so fully encapsulated behaviours that should never be executed or become visible from outside of that layer.

This along with the reflection API allowing you to break scope fuels the burning question, how relaxed to fundemental OO principles is PHP going to become in the future. Is it even worth using the visibility keywords for &gt; 5.4?</description>
		<content:encoded><![CDATA[<p>Despite the explaination of what its doing, am I the only one thinking _why_ is it doing this? Is this really a good feature? What benefits does binding closures to a new scope really give? And do the benefits really outweight the risks?</p>
<p>When managing a highly layered application its comforting to know that solid API&#8217;s (which may contain final / private methods) can encapsulate behaviours within themselves. I know the Protected vs Private debate has been iterated more times that i&#8217;d like to mention, but I still feel there is a place for private scope and seeing more features that allow you to break it concerns me.</p>
<p>I can appreciate the common retort of &#8220;well if someone has access to the code they can do what they want&#8221;. This is true, but as release manager you may take comfort in the fact that certain core layers of the application aren&#8217;t touched on a commit, and so fully encapsulated behaviours that should never be executed or become visible from outside of that layer.</p>
<p>This along with the reflection API allowing you to break scope fuels the burning question, how relaxed to fundemental OO principles is PHP going to become in the future. Is it even worth using the visibility keywords for &gt; 5.4?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on The Closure Puzzle by Matthew Weier O'Phinney</title>
		<link>http://daveyshafik.com/archives/32789-the-closure-puzzle.html/comment-page-1#comment-1128</link>
		<dc:creator>Matthew Weier O'Phinney</dc:creator>
		<pubDate>Fri, 13 Jan 2012 18:38:04 +0000</pubDate>
		<guid isPermaLink="false">http://daveyshafik.com/?p=32789#comment-1128</guid>
		<description>As a succinct explanation: In your example, you&#039;re binding $this to Bat, but the _scope_ is Bar -- which means that the closure can only access methods in Bat that are visible to Bar. Since Bar does not extend Bat, that means only public visibility, which means calls to $this-&gt;D() will fail.</description>
		<content:encoded><![CDATA[<p>As a succinct explanation: In your example, you&#8217;re binding $this to Bat, but the _scope_ is Bar &#8212; which means that the closure can only access methods in Bat that are visible to Bar. Since Bar does not extend Bat, that means only public visibility, which means calls to $this-&gt;D() will fail.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Faster Arrays by Lukas</title>
		<link>http://daveyshafik.com/archives/30320-faster-arrays.html/comment-page-1#comment-737</link>
		<dc:creator>Lukas</dc:creator>
		<pubDate>Tue, 08 Nov 2011 07:37:03 +0000</pubDate>
		<guid isPermaLink="false">http://daveyshafik.com/?p=30320#comment-737</guid>
		<description>Yeah I also do not think that this will be useful in that many cases, but there might be some with an importer. However if we start doing stuff like this &quot;read-only&quot; arrays would likely be something we should look into first.</description>
		<content:encoded><![CDATA[<p>Yeah I also do not think that this will be useful in that many cases, but there might be some with an importer. However if we start doing stuff like this &#8220;read-only&#8221; arrays would likely be something we should look into first.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Faster Arrays by Michael Stillwell</title>
		<link>http://daveyshafik.com/archives/30320-faster-arrays.html/comment-page-1#comment-658</link>
		<dc:creator>Michael Stillwell</dc:creator>
		<pubDate>Mon, 07 Nov 2011 14:38:20 +0000</pubDate>
		<guid isPermaLink="false">http://daveyshafik.com/?p=30320#comment-658</guid>
		<description>Have you tried preallocating the regular array with array_fill() or similar?  I&#039;d expect &quot;preallocated&quot; to then perform somewhere between &quot;regular&quot; and &quot;fixed.&quot;</description>
		<content:encoded><![CDATA[<p>Have you tried preallocating the regular array with array_fill() or similar?  I&#8217;d expect &#8220;preallocated&#8221; to then perform somewhere between &#8220;regular&#8221; and &#8220;fixed.&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Faster Arrays by Johannes</title>
		<link>http://daveyshafik.com/archives/30320-faster-arrays.html/comment-page-1#comment-657</link>
		<dc:creator>Johannes</dc:creator>
		<pubDate>Mon, 07 Nov 2011 13:57:59 +0000</pubDate>
		<guid isPermaLink="false">http://daveyshafik.com/?p=30320#comment-657</guid>
		<description>Implementing PDO fetchAll zo return a &quot;fixedArray&quot; would be trivial. I&#039;m not sure whether SPL provides the APIs but even doing it from hand should take less than a day for somebody who knows PHP&#039;s workings.

But a few words of notice: An SplFixedArray is no array but an object. This means it is not using copy semantics but pass-by-handle semantics. It&#039;s not possible to use all array functions etc.

I also wonder how useful this really is. If you care about performance why do you copy the complete result set around? - Read the data and process it dirctly (using some fetch loop etc.) instead of copying it and iterating multiple times (at least one time for the fetchAll and then a second time for processing) Proper optimisation there should bring more benefit than using this not-a-real-array thing.</description>
		<content:encoded><![CDATA[<p>Implementing PDO fetchAll zo return a &#8220;fixedArray&#8221; would be trivial. I&#8217;m not sure whether SPL provides the APIs but even doing it from hand should take less than a day for somebody who knows PHP&#8217;s workings.</p>
<p>But a few words of notice: An SplFixedArray is no array but an object. This means it is not using copy semantics but pass-by-handle semantics. It&#8217;s not possible to use all array functions etc.</p>
<p>I also wonder how useful this really is. If you care about performance why do you copy the complete result set around? &#8211; Read the data and process it dirctly (using some fetch loop etc.) instead of copying it and iterating multiple times (at least one time for the fetchAll and then a second time for processing) Proper optimisation there should bring more benefit than using this not-a-real-array thing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Faster Arrays by Davey Shafik</title>
		<link>http://daveyshafik.com/archives/30320-faster-arrays.html/comment-page-1#comment-655</link>
		<dc:creator>Davey Shafik</dc:creator>
		<pubDate>Sun, 06 Nov 2011 16:15:49 +0000</pubDate>
		<guid isPermaLink="false">http://daveyshafik.com/?p=30320#comment-655</guid>
		<description>It would have to be something like: PDO::FETCH_ALL_MODE_FIXED_ARRAY and you would also need the MODE_ARRAY to undo it. It would also be a PDO option not a fetchAll() option like emulated prepares etc.</description>
		<content:encoded><![CDATA[<p>It would have to be something like: PDO::FETCH_ALL_MODE_FIXED_ARRAY and you would also need the MODE_ARRAY to undo it. It would also be a PDO option not a fetchAll() option like emulated prepares etc.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Faster Arrays by David Rogers</title>
		<link>http://daveyshafik.com/archives/30320-faster-arrays.html/comment-page-1#comment-654</link>
		<dc:creator>David Rogers</dc:creator>
		<pubDate>Sun, 06 Nov 2011 12:55:51 +0000</pubDate>
		<guid isPermaLink="false">http://daveyshafik.com/?p=30320#comment-654</guid>
		<description>Interesting idea for PDOStatement::fetchAll() to return a SplFixedArray for large datasets. Could probably add another class constant to PDO to indicate the desired behavior, i.e. PDO::FETCH_MODE_FIXED_ARRAY.</description>
		<content:encoded><![CDATA[<p>Interesting idea for PDOStatement::fetchAll() to return a SplFixedArray for large datasets. Could probably add another class constant to PDO to indicate the desired behavior, i.e. PDO::FETCH_MODE_FIXED_ARRAY.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on New Start by I&#8217;m joining EngineYard to work on Orchestra &#124; Ross Duggan</title>
		<link>http://daveyshafik.com/archives/28649-new-start.html/comment-page-1#comment-574</link>
		<dc:creator>I&#8217;m joining EngineYard to work on Orchestra &#124; Ross Duggan</dc:creator>
		<pubDate>Fri, 07 Oct 2011 10:24:03 +0000</pubDate>
		<guid isPermaLink="false">http://daveyshafik.com/?p=28649#comment-574</guid>
		<description>[...] years with Boards.ie, and next week I join Eamon, David, Helgi and Gwoo with Noah, Elizabeth, Davey (and a couple of others) to help kick Orchestra into orbit by joining [...]</description>
		<content:encoded><![CDATA[<p>[...] years with Boards.ie, and next week I join Eamon, David, Helgi and Gwoo with Noah, Elizabeth, Davey (and a couple of others) to help kick Orchestra into orbit by joining [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on New Start by Davey Shafik</title>
		<link>http://daveyshafik.com/archives/28649-new-start.html/comment-page-1#comment-542</link>
		<dc:creator>Davey Shafik</dc:creator>
		<pubDate>Fri, 30 Sep 2011 05:21:14 +0000</pubDate>
		<guid isPermaLink="false">http://daveyshafik.com/?p=28649#comment-542</guid>
		<description>They have joined forces with EngineYard as of August 23rd, see more here: http://blog.orchestra.io/post/9291203706/orchestra-engine-yard</description>
		<content:encoded><![CDATA[<p>They have joined forces with EngineYard as of August 23rd, see more here: <a href="http://blog.orchestra.io/post/9291203706/orchestra-engine-yard" >http://blog.orchestra.io/post/9291203706/orchestra-engine-yard</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>

