<?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: Thoughts on PureMVC Mediators</title>
	<atom:link href="http://labs.almerblank.com/2010/02/thoughts-on-puremvc-mediators/feed/" rel="self" type="application/rss+xml" />
	<link>http://labs.almerblank.com/2010/02/thoughts-on-puremvc-mediators/</link>
	<description>Blog of the Talent at Almer/Blank</description>
	<lastBuildDate>Wed, 21 Jul 2010 18:54:56 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Omar Gonzalez</title>
		<link>http://labs.almerblank.com/2010/02/thoughts-on-puremvc-mediators/comment-page-1/#comment-144</link>
		<dc:creator>Omar Gonzalez</dc:creator>
		<pubDate>Sun, 07 Feb 2010 20:47:43 +0000</pubDate>
		<guid isPermaLink="false">http://labs.almerblank.com/?p=1302#comment-144</guid>
		<description>That is correct, I was not saying that is should be public, I was saying that I have found this to be the case in code I&#039;ve read while working with PMVC.  The best practices do show an example with a protected implicit getter, however they do not go into detail on whether it is best practice to use protected, which is why I would suspect some people have taken to using public, resulting in the type of code I was pointing out in the post.  

However, there is one thing in my post that does go directly against what is in the Best Practices document, and that is creating methods on the concrete Mediators that expose methods of manipulating the view from outside of the Mediator.  The reason that I choose to write my implementations this way is that I can more quickly see what happens as a result of a notification if all the actions are invoked by the registered command.  Which is what I was trying to convey in the last example, where I can see that the notification that triggered the PlaylistLoadedCommand invoked methods on two Mediators and one Proxy.  This approach lets me debug my code easier, as well as lets me reuse methods of a Mediator or Proxy if they are needed to be called from other Commands, as well as keeps the mediator less coupled to the notifications that trigger certain Mediator actions.  I&#039;ve found this very useful in being able to move a Mediator to another application with very little effort in integrating its functionality, since I just have to register the mediator to a Facade and retrieve it in a command where I need to invoke one of its methods.

In the end, this is one of those things that I think is completely a matter of preference, this just happens to be what I prefer.  We usually make these types of preference choices on how it effects the way in which we write and debug code, these approaches have helped me.  Hopefully they help someone else, but I don&#039;t expect everyone to agree.</description>
		<content:encoded><![CDATA[<p>That is correct, I was not saying that is should be public, I was saying that I have found this to be the case in code I&#039;ve read while working with PMVC.  The best practices do show an example with a protected implicit getter, however they do not go into detail on whether it is best practice to use protected, which is why I would suspect some people have taken to using public, resulting in the type of code I was pointing out in the post.  </p>
<p>However, there is one thing in my post that does go directly against what is in the Best Practices document, and that is creating methods on the concrete Mediators that expose methods of manipulating the view from outside of the Mediator.  The reason that I choose to write my implementations this way is that I can more quickly see what happens as a result of a notification if all the actions are invoked by the registered command.  Which is what I was trying to convey in the last example, where I can see that the notification that triggered the PlaylistLoadedCommand invoked methods on two Mediators and one Proxy.  This approach lets me debug my code easier, as well as lets me reuse methods of a Mediator or Proxy if they are needed to be called from other Commands, as well as keeps the mediator less coupled to the notifications that trigger certain Mediator actions.  I&#039;ve found this very useful in being able to move a Mediator to another application with very little effort in integrating its functionality, since I just have to register the mediator to a Facade and retrieve it in a command where I need to invoke one of its methods.</p>
<p>In the end, this is one of those things that I think is completely a matter of preference, this just happens to be what I prefer.  We usually make these types of preference choices on how it effects the way in which we write and debug code, these approaches have helped me.  Hopefully they help someone else, but I don&#039;t expect everyone to agree.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scottae</title>
		<link>http://labs.almerblank.com/2010/02/thoughts-on-puremvc-mediators/comment-page-1/#comment-143</link>
		<dc:creator>Scottae</dc:creator>
		<pubDate>Sun, 07 Feb 2010 15:56:31 +0000</pubDate>
		<guid isPermaLink="false">http://labs.almerblank.com/?p=1302#comment-143</guid>
		<description>The view getter shouldn&#039;t be public.  If you look at the best practices on page 25, you can see that it should be protected:  http://puremvc.org/component/option,com_wrapper/Itemid,174/</description>
		<content:encoded><![CDATA[<p>The view getter shouldn&#039;t be public.  If you look at the best practices on page 25, you can see that it should be protected:  <a href="http://puremvc.org/component/option,com_wrapper/Itemid,174/" rel="nofollow">http://puremvc.org/component/option,com_wrapper/Itemid,174/</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
