<?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>Buy Ketoconazole Cream Without Prescription &raquo; We Always Have The LOWEST Pharmacy Online-Offers</title>
	<atom:link href="http://anaulin.org/wordpress/archives/2008/02/05/singletons-and-evil/feed/" rel="self" type="application/rss+xml" />
	<link>http://anaulin.org/wordpress/archives/2008/02/05/singletons-and-evil/</link>
	<description>Squandering bits since 2003</description>
	<lastBuildDate>Sun, 01 Jan 2012 00:32:28 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
	<item>
		<title>Buy Ketoconazole Cream Without Prescription &raquo; We Always Have The LOWEST Pharmacy Online-Offers</title>
		<link>http://anaulin.org/wordpress/archives/2008/02/05/singletons-and-evil/comment-page-1/#comment-43172</link>
		<dc:creator>ana</dc:creator>
		<pubDate>Sun, 24 Feb 2008 20:42:42 +0000</pubDate>
		<guid isPermaLink="false">http://anaulin.org/wordpress/archives/2008/02/05/singletons-and-evil/#comment-43172</guid>
		<description>Fer, I have to agree with Mario here: I see no reasons in your example why the cache manager had to be implemented as a singleton. An instance and dependency injection probably would have sufficed. Instead, you constrained yourself to the use of a singleton, probably unnecessarily.</description>
		<content:encoded><![CDATA[<p>Fer, I have to agree with Mario here: I see no reasons in your example why the cache manager had to be implemented as a singleton. An instance and dependency injection probably would have sufficed. Instead, you constrained yourself to the use of a singleton, probably unnecessarily.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Buy Ketoconazole Cream Without Prescription &raquo; We Always Have The LOWEST Pharmacy Online-Offers</title>
		<link>http://anaulin.org/wordpress/archives/2008/02/05/singletons-and-evil/comment-page-1/#comment-61576</link>
		<dc:creator>ana</dc:creator>
		<pubDate>Sun, 24 Feb 2008 20:42:00 +0000</pubDate>
		<guid isPermaLink="false">http://anaulin.org/wordpress/archives/2008/02/05/singletons-and-evil/#comment-61576</guid>
		<description>Fer, I have to agree with Mario here: I see no reasons in your example why the cache manager had to be implemented as a singleton. An instance and dependency injection probably would have sufficed. Instead, you constrained yourself to the use of a singleton, probably unnecessarily.</description>
		<content:encoded><![CDATA[<p>Fer, I have to agree with Mario here: I see no reasons in your example why the cache manager had to be implemented as a singleton. An instance and dependency injection probably would have sufficed. Instead, you constrained yourself to the use of a singleton, probably unnecessarily.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Buy Ketoconazole Cream Without Prescription &raquo; We Always Have The LOWEST Pharmacy Online-Offers</title>
		<link>http://anaulin.org/wordpress/archives/2008/02/05/singletons-and-evil/comment-page-1/#comment-43119</link>
		<dc:creator>Mario Tanev</dc:creator>
		<pubDate>Sat, 23 Feb 2008 17:52:22 +0000</pubDate>
		<guid isPermaLink="false">http://anaulin.org/wordpress/archives/2008/02/05/singletons-and-evil/#comment-43119</guid>
		<description>Fer,

If your objects wanted to use a global cache, why not have the cache be an argument to the instantiations of all those objects? Is it because someone could still choose to instantiate another version of the cache and pass it to one of the objects? Why are the objects so dependent on having a single version of the cache, is there some special interaction where one object writes and another one reads from the cache? Why couldn&#039;t the Cache Manager be layered on top?

I was not convinced in the need for singletons in that instance.</description>
		<content:encoded><![CDATA[<p>Fer,</p>
<p>If your objects wanted to use a global cache, why not have the cache be an argument to the instantiations of all those objects? Is it because someone could still choose to instantiate another version of the cache and pass it to one of the objects? Why are the objects so dependent on having a single version of the cache, is there some special interaction where one object writes and another one reads from the cache? Why couldn&#8217;t the Cache Manager be layered on top?</p>
<p>I was not convinced in the need for singletons in that instance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Buy Ketoconazole Cream Without Prescription &raquo; We Always Have The LOWEST Pharmacy Online-Offers</title>
		<link>http://anaulin.org/wordpress/archives/2008/02/05/singletons-and-evil/comment-page-1/#comment-61575</link>
		<dc:creator>Mario Tanev</dc:creator>
		<pubDate>Sat, 23 Feb 2008 17:52:00 +0000</pubDate>
		<guid isPermaLink="false">http://anaulin.org/wordpress/archives/2008/02/05/singletons-and-evil/#comment-61575</guid>
		<description>Fer,

If your objects wanted to use a global cache, why not have the cache be an argument to the instantiations of all those objects? Is it because someone could still choose to instantiate another version of the cache and pass it to one of the objects? Why are the objects so dependent on having a single version of the cache, is there some special interaction where one object writes and another one reads from the cache? Why couldn&#039;t the Cache Manager be layered on top?

I was not convinced in the need for singletons in that instance.</description>
		<content:encoded><![CDATA[<p>Fer,</p>
<p>If your objects wanted to use a global cache, why not have the cache be an argument to the instantiations of all those objects? Is it because someone could still choose to instantiate another version of the cache and pass it to one of the objects? Why are the objects so dependent on having a single version of the cache, is there some special interaction where one object writes and another one reads from the cache? Why couldn&#8217;t the Cache Manager be layered on top?</p>
<p>I was not convinced in the need for singletons in that instance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Buy Ketoconazole Cream Without Prescription &raquo; We Always Have The LOWEST Pharmacy Online-Offers</title>
		<link>http://anaulin.org/wordpress/archives/2008/02/05/singletons-and-evil/comment-page-1/#comment-41868</link>
		<dc:creator>Fer Martin</dc:creator>
		<pubDate>Thu, 07 Feb 2008 10:20:34 +0000</pubDate>
		<guid isPermaLink="false">http://anaulin.org/wordpress/archives/2008/02/05/singletons-and-evil/#comment-41868</guid>
		<description>Ana,

I love when you come back techie :) I think this article can bring a hell lot of conversation about it; some technical, but some philosophical as well.

In my opinion, Singleton is not the root of evil, that is an exemplification of the misusage of any technology after all.

Singleton can be a great tool to avoid having multiple copies of an object that it &lt;i&gt;must&lt;/i&gt; be unique in the whole application. 

For example, in the last application I wrote, we had to create a Cache Manager. This class could not be layered on top, and I needed a &quot;singleton&quot; access to the Cache from all objects. They should not care were a single instance of the Cache exists or not, they just want to use it, but it should be unique.

I agree that something that usually falls into the &quot;dark side of bad habits&quot; should be advertised as &quot;evil&quot; (specially for children!), but as you said... not everything is white or black :)

Cheers!!
Fer</description>
		<content:encoded><![CDATA[<p>Ana,</p>
<p>I love when you come back techie <img src='http://anaulin.org/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  I think this article can bring a hell lot of conversation about it; some technical, but some philosophical as well.</p>
<p>In my opinion, Singleton is not the root of evil, that is an exemplification of the misusage of any technology after all.</p>
<p>Singleton can be a great tool to avoid having multiple copies of an object that it <i>must</i> be unique in the whole application. </p>
<p>For example, in the last application I wrote, we had to create a Cache Manager. This class could not be layered on top, and I needed a &#8220;singleton&#8221; access to the Cache from all objects. They should not care were a single instance of the Cache exists or not, they just want to use it, but it should be unique.</p>
<p>I agree that something that usually falls into the &#8220;dark side of bad habits&#8221; should be advertised as &#8220;evil&#8221; (specially for children!), but as you said&#8230; not everything is white or black <img src='http://anaulin.org/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Cheers!!<br />
Fer</p>
]]></content:encoded>
	</item>
	<item>
		<title>Buy Ketoconazole Cream Without Prescription &raquo; We Always Have The LOWEST Pharmacy Online-Offers</title>
		<link>http://anaulin.org/wordpress/archives/2008/02/05/singletons-and-evil/comment-page-1/#comment-61574</link>
		<dc:creator>Fer Martin</dc:creator>
		<pubDate>Thu, 07 Feb 2008 10:20:00 +0000</pubDate>
		<guid isPermaLink="false">http://anaulin.org/wordpress/archives/2008/02/05/singletons-and-evil/#comment-61574</guid>
		<description>Ana,

I love when you come back techie :) I think this article can bring a hell lot of conversation about it; some technical, but some philosophical as well.

In my opinion, Singleton is not the root of evil, that is an exemplification of the misusage of any technology after all.

Singleton can be a great tool to avoid having multiple copies of an object that it &lt;i&gt;must&lt;/i&gt; be unique in the whole application. 

For example, in the last application I wrote, we had to create a Cache Manager. This class could not be layered on top, and I needed a &quot;singleton&quot; access to the Cache from all objects. They should not care were a single instance of the Cache exists or not, they just want to use it, but it should be unique.

I agree that something that usually falls into the &quot;dark side of bad habits&quot; should be advertised as &quot;evil&quot; (specially for children!), but as you said... not everything is white or black :)

Cheers!!
Fer</description>
		<content:encoded><![CDATA[<p>Ana,</p>
<p>I love when you come back techie <img src='http://anaulin.org/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  I think this article can bring a hell lot of conversation about it; some technical, but some philosophical as well.</p>
<p>In my opinion, Singleton is not the root of evil, that is an exemplification of the misusage of any technology after all.</p>
<p>Singleton can be a great tool to avoid having multiple copies of an object that it <i>must</i> be unique in the whole application. </p>
<p>For example, in the last application I wrote, we had to create a Cache Manager. This class could not be layered on top, and I needed a &#8220;singleton&#8221; access to the Cache from all objects. They should not care were a single instance of the Cache exists or not, they just want to use it, but it should be unique.</p>
<p>I agree that something that usually falls into the &#8220;dark side of bad habits&#8221; should be advertised as &#8220;evil&#8221; (specially for children!), but as you said&#8230; not everything is white or black <img src='http://anaulin.org/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Cheers!!<br />
Fer</p>
]]></content:encoded>
	</item>
</channel>
</rss>

