<?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: The much dreaded Singleton</title>
	<atom:link href="http://blog.controul.com/2009/02/the-much-dreaded-singleton/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.controul.com/2009/02/the-much-dreaded-singleton/</link>
	<description>Elaborations on flash.</description>
	<lastBuildDate>Tue, 27 Jul 2010 09:31:06 -0700</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Alan Shaw</title>
		<link>http://blog.controul.com/2009/02/the-much-dreaded-singleton/comment-page-1/#comment-63</link>
		<dc:creator>Alan Shaw</dc:creator>
		<pubDate>Fri, 22 May 2009 03:28:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.controul.com/?p=25#comment-63</guid>
		<description>I too have been a fan of Hevery for a while.  I was looking forward to gaining deeper understanding of his concepts as I implemented true unit testing and moved toward continuous integration in a Flex project... and the project was abruptly cancelled.  All interesting stuff, but left to my own devices I tend to get more into geometric programming.</description>
		<content:encoded><![CDATA[<p>I too have been a fan of Hevery for a while.  I was looking forward to gaining deeper understanding of his concepts as I implemented true unit testing and moved toward continuous integration in a Flex project&#8230; and the project was abruptly cancelled.  All interesting stuff, but left to my own devices I tend to get more into geometric programming.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hristo</title>
		<link>http://blog.controul.com/2009/02/the-much-dreaded-singleton/comment-page-1/#comment-11</link>
		<dc:creator>hristo</dc:creator>
		<pubDate>Thu, 09 Apr 2009 19:12:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.controul.com/?p=25#comment-11</guid>
		<description>I&#039;ll post about this, results are insanely divergent among players.
EDIT: &lt;a href=&quot;http://blog.controul.com/2009/04/how-slow-is-static-access-in-as3avm2-exactly/&quot; rel=&quot;nofollow&quot;&gt;Done&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p>I&#8217;ll post about this, results are insanely divergent among players.<br />
EDIT: <a href="http://blog.controul.com/2009/04/how-slow-is-static-access-in-as3avm2-exactly/" rel="nofollow">Done</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dVyper</title>
		<link>http://blog.controul.com/2009/02/the-much-dreaded-singleton/comment-page-1/#comment-10</link>
		<dc:creator>dVyper</dc:creator>
		<pubDate>Thu, 09 Apr 2009 10:05:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.controul.com/?p=25#comment-10</guid>
		<description>I&#039;m interested in this - what proof is there that accessing static variables is 10 times slower to access?</description>
		<content:encoded><![CDATA[<p>I&#8217;m interested in this &#8211; what proof is there that accessing static variables is 10 times slower to access?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hristo</title>
		<link>http://blog.controul.com/2009/02/the-much-dreaded-singleton/comment-page-1/#comment-3</link>
		<dc:creator>hristo</dc:creator>
		<pubDate>Fri, 27 Feb 2009 15:01:28 +0000</pubDate>
		<guid isPermaLink="false">http://blog.controul.com/?p=25#comment-3</guid>
		<description>Hey Bill,

Miško Hevery’s series of posts on Singletons are indeed a great read, which I have come across before, I believe, from links on your blog.
I will soon come back to this topic with a practical example that we can discuss throughout. Thank you for the reply!</description>
		<content:encoded><![CDATA[<p>Hey Bill,</p>
<p>Miško Hevery’s series of posts on Singletons are indeed a great read, which I have come across before, I believe, from links on your blog.<br />
I will soon come back to this topic with a practical example that we can discuss throughout. Thank you for the reply!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bill Sanders</title>
		<link>http://blog.controul.com/2009/02/the-much-dreaded-singleton/comment-page-1/#comment-2</link>
		<dc:creator>Bill Sanders</dc:creator>
		<pubDate>Fri, 27 Feb 2009 10:38:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.controul.com/?p=25#comment-2</guid>
		<description>Hi Hristo,

I like your post on Singletons even though I&#039;ve quit using them, and I don&#039;t believe that they&#039;ve suffered the martyrdom you suggest.(They deserve to be kicked around a lot more!) The fact that you have thought about them and their advantages and limitations puts you way beyond most developers.

Miško Hevery&#039;s post &lt;a href=&quot;http://misko.hevery.com/2008/08/17/singletons-are-pathological-liars/&quot; rel=&quot;nofollow&quot;&gt;Singletons are Pathological Liars&lt;/a&gt; is one of the best explanations of why to avoid Singletons—they act like global variables and break encapsulation. Of course people love and use Singletons, and that is the very reason they&#039;re so dangerous. It&#039;s almost like placing a virus in your own code.

One alternative to Singletons is simply to use the Client as your entry point. Many design patterns include the placement of the Client module in the class diagram (implied or as an integral part of the pattern) along with the kind of reference to the different modules. Some references are to a single module and others, like the Abstract Factory, are multiple and complex. However, what they all have in common is that they maintain the integrity of the components and keep the design open for re-use and update.

Let&#039;s keep this discussion going.

Kindest regards,
Bill</description>
		<content:encoded><![CDATA[<p>Hi Hristo,</p>
<p>I like your post on Singletons even though I&#8217;ve quit using them, and I don&#8217;t believe that they&#8217;ve suffered the martyrdom you suggest.(They deserve to be kicked around a lot more!) The fact that you have thought about them and their advantages and limitations puts you way beyond most developers.</p>
<p>Miško Hevery&#8217;s post <a href="http://misko.hevery.com/2008/08/17/singletons-are-pathological-liars/" rel="nofollow">Singletons are Pathological Liars</a> is one of the best explanations of why to avoid Singletons—they act like global variables and break encapsulation. Of course people love and use Singletons, and that is the very reason they&#8217;re so dangerous. It&#8217;s almost like placing a virus in your own code.</p>
<p>One alternative to Singletons is simply to use the Client as your entry point. Many design patterns include the placement of the Client module in the class diagram (implied or as an integral part of the pattern) along with the kind of reference to the different modules. Some references are to a single module and others, like the Abstract Factory, are multiple and complex. However, what they all have in common is that they maintain the integrity of the components and keep the design open for re-use and update.</p>
<p>Let&#8217;s keep this discussion going.</p>
<p>Kindest regards,<br />
Bill</p>
]]></content:encoded>
	</item>
</channel>
</rss>
