<?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 Web Mozarts</title>
	<atom:link href="http://webmozarts.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://webmozarts.com</link>
	<description>On The Art Of Web Development</description>
	<lastBuildDate>Wed, 10 Apr 2013 12:43:21 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
	<item>
		<title>Comment on Give the Traversable Interface Some Love by Bernhard</title>
		<link>http://webmozarts.com/2012/10/07/give-the-traversable-interface-some-love/comment-page-1/#comment-132980</link>
		<dc:creator>Bernhard</dc:creator>
		<pubDate>Wed, 10 Apr 2013 12:43:21 +0000</pubDate>
		<guid isPermaLink="false">http://webmozarts.com/?p=619#comment-132980</guid>
		<description><![CDATA[@bas: Exactly, you summed it up pretty well.]]></description>
		<content:encoded><![CDATA[<p>@bas: Exactly, you summed it up pretty well.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Give the Traversable Interface Some Love by bas</title>
		<link>http://webmozarts.com/2012/10/07/give-the-traversable-interface-some-love/comment-page-1/#comment-132598</link>
		<dc:creator>bas</dc:creator>
		<pubDate>Tue, 09 Apr 2013 19:36:35 +0000</pubDate>
		<guid isPermaLink="false">http://webmozarts.com/?p=619#comment-132598</guid>
		<description><![CDATA[interfacing an abstract or base class with \Traversable allows for ducktyping on iteratorable arguments right? instead on checking on type we check on functional requirement (in my opinion a interface should only include these)]]></description>
		<content:encoded><![CDATA[<p>interfacing an abstract or base class with \Traversable allows for ducktyping on iteratorable arguments right? instead on checking on type we check on functional requirement (in my opinion a interface should only include these)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on On Libraries and Dependencies by horse games free online</title>
		<link>http://webmozarts.com/2012/12/15/on-libraries-and-dependencies/comment-page-1/#comment-117690</link>
		<dc:creator>horse games free online</dc:creator>
		<pubDate>Fri, 08 Mar 2013 05:10:18 +0000</pubDate>
		<guid isPermaLink="false">http://webmozarts.com/?p=640#comment-117690</guid>
		<description><![CDATA[Hello, I think your blog might be having browser compatibility issues.
When I look at your blog site in Safari, it looks fine but when opening 
in Internet Explorer, it has some overlapping.

I just wanted to give you a quick heads up! Other then that, superb blog!]]></description>
		<content:encoded><![CDATA[<p>Hello, I think your blog might be having browser compatibility issues.<br />
When I look at your blog site in Safari, it looks fine but when opening<br />
in Internet Explorer, it has some overlapping.</p>
<p>I just wanted to give you a quick heads up! Other then that, superb blog!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Why sfContext::getInstance() Is Bad by Thomas</title>
		<link>http://webmozarts.com/2009/07/01/why-sfcontextgetinstance-is-bad/comment-page-1/#comment-109649</link>
		<dc:creator>Thomas</dc:creator>
		<pubDate>Wed, 13 Feb 2013 05:16:52 +0000</pubDate>
		<guid isPermaLink="false">http://webmozarts.com/?p=380#comment-109649</guid>
		<description><![CDATA[I don&#039;t understand why you pin this negative label on the sfContext::getInstance() and the singleton design pattern. Like any tool in a developer toolkit, if badly used, a design pattern can be more problematic than helpful. 

In your examples, the problem is not the use of the singleton design pattern but rather the junction of a model class (an object that is independent from the MVC application and that typically would represent an external resource, from a database or similar) with an object that is intrinsically tied to the Symfony MVC application pattern, which itself is entirely tied to, as you explained, the request, controller and view ensemble.

Regardless, the singleton design pattern is a useful development pattern which has its advantages (ensure uniqueness of an instance, provide single-point access to a resource/model) and its drawbacks (such as preventing garbage collection). Be smart, use it when it applies.]]></description>
		<content:encoded><![CDATA[<p>I don&#8217;t understand why you pin this negative label on the sfContext::getInstance() and the singleton design pattern. Like any tool in a developer toolkit, if badly used, a design pattern can be more problematic than helpful. </p>
<p>In your examples, the problem is not the use of the singleton design pattern but rather the junction of a model class (an object that is independent from the MVC application and that typically would represent an external resource, from a database or similar) with an object that is intrinsically tied to the Symfony MVC application pattern, which itself is entirely tied to, as you explained, the request, controller and view ensemble.</p>
<p>Regardless, the singleton design pattern is a useful development pattern which has its advantages (ensure uniqueness of an instance, provide single-point access to a resource/model) and its drawbacks (such as preventing garbage collection). Be smart, use it when it applies.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on On Libraries and Dependencies by Rasmus Schultz</title>
		<link>http://webmozarts.com/2012/12/15/on-libraries-and-dependencies/comment-page-1/#comment-96406</link>
		<dc:creator>Rasmus Schultz</dc:creator>
		<pubDate>Wed, 23 Jan 2013 14:36:10 +0000</pubDate>
		<guid isPermaLink="false">http://webmozarts.com/?p=640#comment-96406</guid>
		<description><![CDATA[These past few years, I feel increasingly that most components can avoid difficult dependencies by adhering to one simple principle: each component should stick to a single responsibility.

To use a practical example, think about a component that sends e-mail via SMTP - this is the kind of thing where you&#039;re typically going to want some kind of diagnostic facility when it&#039;s running in production. So many people will simply add a $debug flag to the class, and this will toggle some internal logging feature on or off.

The problem with that is, logging diagnostic messages has nothing to do with the sending e-mail - and because logging can be done in 100 different ways, this introduces scope creep and eventually multiple different logging-methods and some way to toggle them, which is way beyond what an e-mail component should do.

Modern PHP has closures, so we can now solve this by simply adding a callback property (e.g. $onLog) to the class - and suddenly, all the SMTP class needs to knows about logging is that messages exist. Everything else can be delegated to a programmer, who can choose to plug in his favorite logger, test-framework, Twitter API, a simple echo-statement during development, or whatever madness you see fit.

Sure, turning on logging now is a bit more work than just raising a boolean flag - but I think we all need to get more comfortable writing a couple of lines in a closure and think of it as &quot;configuration&quot;, even if it is code. It&#039;ll make our lives easier in the long run.]]></description>
		<content:encoded><![CDATA[<p>These past few years, I feel increasingly that most components can avoid difficult dependencies by adhering to one simple principle: each component should stick to a single responsibility.</p>
<p>To use a practical example, think about a component that sends e-mail via SMTP &#8211; this is the kind of thing where you&#8217;re typically going to want some kind of diagnostic facility when it&#8217;s running in production. So many people will simply add a $debug flag to the class, and this will toggle some internal logging feature on or off.</p>
<p>The problem with that is, logging diagnostic messages has nothing to do with the sending e-mail &#8211; and because logging can be done in 100 different ways, this introduces scope creep and eventually multiple different logging-methods and some way to toggle them, which is way beyond what an e-mail component should do.</p>
<p>Modern PHP has closures, so we can now solve this by simply adding a callback property (e.g. $onLog) to the class &#8211; and suddenly, all the SMTP class needs to knows about logging is that messages exist. Everything else can be delegated to a programmer, who can choose to plug in his favorite logger, test-framework, Twitter API, a simple echo-statement during development, or whatever madness you see fit.</p>
<p>Sure, turning on logging now is a bit more work than just raising a boolean flag &#8211; but I think we all need to get more comfortable writing a couple of lines in a closure and think of it as &#8220;configuration&#8221;, even if it is code. It&#8217;ll make our lives easier in the long run.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Why sfContext::getInstance() Is Bad by Wyjątek &#039;The &#34;default&#34; context does not exist.&#039; w linii poleceń symfony</title>
		<link>http://webmozarts.com/2009/07/01/why-sfcontextgetinstance-is-bad/comment-page-1/#comment-91749</link>
		<dc:creator>Wyjątek &#039;The &#34;default&#34; context does not exist.&#039; w linii poleceń symfony</dc:creator>
		<pubDate>Fri, 11 Jan 2013 13:33:51 +0000</pubDate>
		<guid isPermaLink="false">http://webmozarts.com/?p=380#comment-91749</guid>
		<description><![CDATA[[...] problematyczną zależnością. Dobre argumenty popierające tą tezę przedstawiono w artykule &quot;Why sfContext::getInstance() Is Bad&quot; i prezentacji &quot;30 Symfony Best Practices (slajd 58)&quot;.Tweet6 października 2009 (Jakub Zalas) [...]]]></description>
		<content:encoded><![CDATA[<p>[...] problematyczną zależnością. Dobre argumenty popierające tą tezę przedstawiono w artykule &quot;Why sfContext::getInstance() Is Bad&quot; i prezentacji &quot;30 Symfony Best Practices (slajd 58)&quot;.Tweet6 października 2009 (Jakub Zalas) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on On Libraries and Dependencies by Bernhard</title>
		<link>http://webmozarts.com/2012/12/15/on-libraries-and-dependencies/comment-page-1/#comment-86589</link>
		<dc:creator>Bernhard</dc:creator>
		<pubDate>Sat, 29 Dec 2012 08:40:38 +0000</pubDate>
		<guid isPermaLink="false">http://webmozarts.com/?p=640#comment-86589</guid>
		<description><![CDATA[@Bertrand: You are both right. Originally, the event dispatcher had its roots in Cocoa. Later on we thought about replacing it with Doctrine&#039;s event dispatcher, but couldn&#039;t, because we would have had to add functionality to it that would have negatively impacted Doctrine&#039;s performance. So we ended up adapting our own implementation instead.]]></description>
		<content:encoded><![CDATA[<p>@Bertrand: You are both right. Originally, the event dispatcher had its roots in Cocoa. Later on we thought about replacing it with Doctrine&#8217;s event dispatcher, but couldn&#8217;t, because we would have had to add functionality to it that would have negatively impacted Doctrine&#8217;s performance. So we ended up adapting our own implementation instead.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on On Libraries and Dependencies by Bertrand</title>
		<link>http://webmozarts.com/2012/12/15/on-libraries-and-dependencies/comment-page-1/#comment-86548</link>
		<dc:creator>Bertrand</dc:creator>
		<pubDate>Sat, 29 Dec 2012 00:02:15 +0000</pubDate>
		<guid isPermaLink="false">http://webmozarts.com/?p=640#comment-86548</guid>
		<description><![CDATA[@Lukas : Look here http://web.archive.org/web/20100907174618/http://components.symfony-project.org/event-dispatcher/

It says : **Symfony Event Dispatcher has its roots in the Apple Cocoa notification center.** So I guess you are misinformed. And I don&#039;t see how this relates to Hibernate or Django...

But I was indeed wrong on one point: they got the NIH syndrom 5 years later, not 3.]]></description>
		<content:encoded><![CDATA[<p>@Lukas : Look here <a href="http://web.archive.org/web/20100907174618/http://components.symfony-project.org/event-dispatcher/" rel="nofollow" target="_blank" class="liexternal">http://web.archive.org/web/20100907174618/http://components.symfony-project.org/event-dispatcher/</a></p>
<p>It says : **Symfony Event Dispatcher has its roots in the Apple Cocoa notification center.** So I guess you are misinformed. And I don&#8217;t see how this relates to Hibernate or Django&#8230;</p>
<p>But I was indeed wrong on one point: they got the NIH syndrom 5 years later, not 3.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on On Libraries and Dependencies by Лучшее в мире PHP за 2012 и дайджест интересных материалов за последние две недели №7 (15.12.2012 — 28.12.2012) &#124; NEWS.ptaah.org.ua</title>
		<link>http://webmozarts.com/2012/12/15/on-libraries-and-dependencies/comment-page-1/#comment-86450</link>
		<dc:creator>Лучшее в мире PHP за 2012 и дайджест интересных материалов за последние две недели №7 (15.12.2012 — 28.12.2012) &#124; NEWS.ptaah.org.ua</dc:creator>
		<pubDate>Fri, 28 Dec 2012 16:15:11 +0000</pubDate>
		<guid isPermaLink="false">http://webmozarts.com/?p=640#comment-86450</guid>
		<description><![CDATA[[...] О библиотеках и зависимостях &#8212; Существует мнение что, меньшее число зависимостей у интрумента означает меньшую связанность. Автор в своем посте аргументирует в пользу того, что само по себе наличие зависимостей совсем не плохо, а их наличие уменьшает связанность и повышает связность. [...]]]></description>
		<content:encoded><![CDATA[<p>[...] О библиотеках и зависимостях &mdash; Существует мнение что, меньшее число зависимостей у интрумента означает меньшую связанность. Автор в своем посте аргументирует в пользу того, что само по себе наличие зависимостей совсем не плохо, а их наличие уменьшает связанность и повышает связность. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on On Libraries and Dependencies by Lukas</title>
		<link>http://webmozarts.com/2012/12/15/on-libraries-and-dependencies/comment-page-1/#comment-85237</link>
		<dc:creator>Lukas</dc:creator>
		<pubDate>Sun, 23 Dec 2012 10:16:43 +0000</pubDate>
		<guid isPermaLink="false">http://webmozarts.com/?p=640#comment-85237</guid>
		<description><![CDATA[@Bertrand: Just FYI .. the Symfony2 event dispatcher is based on the Doctrine implementation. Doctrine itself is almost as old as your implementation, though in general I suspect that Doctrine mostly looked at Hibernate (Symfony2 itself used Spring and Django a lot as a source of inspiration) as the source of inspiration and not at the Cocoa framework (making this potentially an example of different approaches for a similar problem domain).

And in case you are wondering why Symfony2 isn&#039;t just using the Event system from Doctrine Common. We actually looked at it and determined for the flexibility that Symfony2 needs Doctrine would have made changes that would have had a severe impact on its performance. We tried to see if there was a way to share the core logic, but determined that it wasn&#039;t possible.

Furthermore if you look at your code from back then, its using stuff like return by reference. I am sure that it can be rewritten to PHP5 with reasonable effort, but its not like it would have made sense to use as is nor that its a lot of lines of code to write an event dispatcher. It basically boils down to picking one of the algorithms already implemented out there and then making it work in PHP.]]></description>
		<content:encoded><![CDATA[<p>@Bertrand: Just FYI .. the Symfony2 event dispatcher is based on the Doctrine implementation. Doctrine itself is almost as old as your implementation, though in general I suspect that Doctrine mostly looked at Hibernate (Symfony2 itself used Spring and Django a lot as a source of inspiration) as the source of inspiration and not at the Cocoa framework (making this potentially an example of different approaches for a similar problem domain).</p>
<p>And in case you are wondering why Symfony2 isn&#8217;t just using the Event system from Doctrine Common. We actually looked at it and determined for the flexibility that Symfony2 needs Doctrine would have made changes that would have had a severe impact on its performance. We tried to see if there was a way to share the core logic, but determined that it wasn&#8217;t possible.</p>
<p>Furthermore if you look at your code from back then, its using stuff like return by reference. I am sure that it can be rewritten to PHP5 with reasonable effort, but its not like it would have made sense to use as is nor that its a lot of lines of code to write an event dispatcher. It basically boils down to picking one of the algorithms already implemented out there and then making it work in PHP.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
