
<?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: Why No Love for the Monostate Pattern in ActionScript 3?</title>
	<atom:link href="http://blog.nobien.net/2008/11/18/why-no-love-for-the-monostate-pattern-in-actionscript-3/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.nobien.net/2008/11/18/why-no-love-for-the-monostate-pattern-in-actionscript-3/</link>
	<description>A nerd blog about nerdy things by ... nerdy guys?</description>
	<lastBuildDate>Tue, 11 Oct 2011 21:59:52 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.3</generator>
	<item>
		<title>By: james</title>
		<link>http://blog.nobien.net/2008/11/18/why-no-love-for-the-monostate-pattern-in-actionscript-3/comment-page-1/#comment-4274</link>
		<dc:creator>james</dc:creator>
		<pubDate>Mon, 15 Dec 2008 10:38:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nobien.net/?p=96#comment-4274</guid>
		<description>Hi Matt,

not sure if you&#039;ve seen this, but it&#039;s definately worth a read...

https://segueuserfiles.middlebury.edu/xp/SingletonAndMonostate.pdf</description>
		<content:encoded><![CDATA[<p>Hi Matt,</p>
<p>not sure if you&#8217;ve seen this, but it&#8217;s definately worth a read&#8230;</p>
<p><a href="https://segueuserfiles.middlebury.edu/xp/SingletonAndMonostate.pdf" rel="nofollow">https://segueuserfiles.middlebury.edu/xp/SingletonAndMonostate.pdf</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: james</title>
		<link>http://blog.nobien.net/2008/11/18/why-no-love-for-the-monostate-pattern-in-actionscript-3/comment-page-1/#comment-4261</link>
		<dc:creator>james</dc:creator>
		<pubDate>Tue, 09 Dec 2008 17:51:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nobien.net/?p=96#comment-4261</guid>
		<description>I&#039;d have to agree with Todd. A Factory only limits the amount of instances that can be created, not the way in which they are implemented, as is the case with both the Singleton and MonoState. This makes it instantly more flexible.</description>
		<content:encoded><![CDATA[<p>I&#8217;d have to agree with Todd. A Factory only limits the amount of instances that can be created, not the way in which they are implemented, as is the case with both the Singleton and MonoState. This makes it instantly more flexible.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: todd anderson</title>
		<link>http://blog.nobien.net/2008/11/18/why-no-love-for-the-monostate-pattern-in-actionscript-3/comment-page-1/#comment-4199</link>
		<dc:creator>todd anderson</dc:creator>
		<pubDate>Mon, 24 Nov 2008 00:05:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nobien.net/?p=96#comment-4199</guid>
		<description>Nice discussion. I guess for me, i would stay away from the monostate as a &#039;model locator&#039;. It may just be personal taste, but anything static connotes to me as being a utility.

If you want a true single instance of an implementation without having to resort to Singletons or a model being self-aware of its use, i would go for an instance of a Factory that keeps a single representation of an implementation rather than go with a Singleton or monostate.

Of course this really all boils down to the size of the development team and individual comfort. I can definitely see where your example will be beneficial and could develop against it if the case presents itself. But i personally would not use it - meaning that it goes against my notions of static properties, not that it is a bad implementation.</description>
		<content:encoded><![CDATA[<p>Nice discussion. I guess for me, i would stay away from the monostate as a &#8216;model locator&#8217;. It may just be personal taste, but anything static connotes to me as being a utility.</p>
<p>If you want a true single instance of an implementation without having to resort to Singletons or a model being self-aware of its use, i would go for an instance of a Factory that keeps a single representation of an implementation rather than go with a Singleton or monostate.</p>
<p>Of course this really all boils down to the size of the development team and individual comfort. I can definitely see where your example will be beneficial and could develop against it if the case presents itself. But i personally would not use it &#8211; meaning that it goes against my notions of static properties, not that it is a bad implementation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>http://blog.nobien.net/2008/11/18/why-no-love-for-the-monostate-pattern-in-actionscript-3/comment-page-1/#comment-4187</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Thu, 20 Nov 2008 21:51:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nobien.net/?p=96#comment-4187</guid>
		<description>I never said Monostate is better than Singleton. I&#039;m just curious about the pros and cons of using one or the other when attempting to ensure only you have only one instance of something. Monostate seems attractive in some ways, but I also have no problem using Singleton. This &quot;debate&quot; seems to be rather unique and spurs some very opinionated responses. Again, I don&#039;t have a preference really. Just wanted to see what other people think because the Monostate pattern isn&#039;t very prevalent in the ActionScript world.</description>
		<content:encoded><![CDATA[<p>I never said Monostate is better than Singleton. I&#8217;m just curious about the pros and cons of using one or the other when attempting to ensure only you have only one instance of something. Monostate seems attractive in some ways, but I also have no problem using Singleton. This &#8220;debate&#8221; seems to be rather unique and spurs some very opinionated responses. Again, I don&#8217;t have a preference really. Just wanted to see what other people think because the Monostate pattern isn&#8217;t very prevalent in the ActionScript world.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fedlarm</title>
		<link>http://blog.nobien.net/2008/11/18/why-no-love-for-the-monostate-pattern-in-actionscript-3/comment-page-1/#comment-4180</link>
		<dc:creator>Fedlarm</dc:creator>
		<pubDate>Thu, 20 Nov 2008 10:20:40 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nobien.net/?p=96#comment-4180</guid>
		<description>&quot;That is the whole point of the monostate pattern - the static property has one value that is shared by all instances of the class and derived classes.&quot;

Yes I can I see that, but, he compares this pattern to Singleton, so I tried to argue for an issue with Monopattern compared to Singleton. Matt, says that it is far better than Singleton, I don&#039;t agree on that. I think it is more simple to use, but it cannot always replace the Singleton, because of the difference on inheritance.</description>
		<content:encoded><![CDATA[<p>&#8220;That is the whole point of the monostate pattern &#8211; the static property has one value that is shared by all instances of the class and derived classes.&#8221;</p>
<p>Yes I can I see that, but, he compares this pattern to Singleton, so I tried to argue for an issue with Monopattern compared to Singleton. Matt, says that it is far better than Singleton, I don&#8217;t agree on that. I think it is more simple to use, but it cannot always replace the Singleton, because of the difference on inheritance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bjorn Schultheiss</title>
		<link>http://blog.nobien.net/2008/11/18/why-no-love-for-the-monostate-pattern-in-actionscript-3/comment-page-1/#comment-4176</link>
		<dc:creator>Bjorn Schultheiss</dc:creator>
		<pubDate>Thu, 20 Nov 2008 03:56:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nobien.net/?p=96#comment-4176</guid>
		<description>Yes.. It uses a factory to create the Presentation Models that get passed via reference to the views..
it injects the delegate in the command and injects the service in the delegate.</description>
		<content:encoded><![CDATA[<p>Yes.. It uses a factory to create the Presentation Models that get passed via reference to the views..<br />
it injects the delegate in the command and injects the service in the delegate.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

