<?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: 1 vs Many, Mediator vs Presenter, 30 mins &#8211; JXLTV &#8211; Episode #1	</title>
	<atom:link href="https://jessewarden.com/2010/01/1-vs-many-mediator-vs-presenter-30-mins-jxltv-episode-1.html/feed" rel="self" type="application/rss+xml" />
	<link>https://jessewarden.com/2010/01/1-vs-many-mediator-vs-presenter-30-mins-jxltv-episode-1.html</link>
	<description>Software &#124; Fitness &#124; Gaming</description>
	<lastBuildDate>Sat, 17 Apr 2010 15:25:28 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>
		By: Suketu Vyas		</title>
		<link>https://jessewarden.com/2010/01/1-vs-many-mediator-vs-presenter-30-mins-jxltv-episode-1.html/comment-page-1#comment-221526</link>

		<dc:creator><![CDATA[Suketu Vyas]]></dc:creator>
		<pubDate>Mon, 01 Feb 2010 16:25:41 +0000</pubDate>
		<guid isPermaLink="false">http://jessewarden.com/?p=1954#comment-221526</guid>

					<description><![CDATA[Hey Gr8 stuff... Specially i liked 30 mins advice...]]></description>
			<content:encoded><![CDATA[<p>Hey Gr8 stuff&#8230; Specially i liked 30 mins advice&#8230;</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: JesterXL		</title>
		<link>https://jessewarden.com/2010/01/1-vs-many-mediator-vs-presenter-30-mins-jxltv-episode-1.html/comment-page-1#comment-220915</link>

		<dc:creator><![CDATA[JesterXL]]></dc:creator>
		<pubDate>Thu, 28 Jan 2010 23:28:20 +0000</pubDate>
		<guid isPermaLink="false">http://jessewarden.com/?p=1954#comment-220915</guid>

					<description><![CDATA[Yup.  The definitions of Presenter &#038; Mediator in &quot;the Flash world&quot; are muddied, and I apologize doing it myself whilst drinking.  Some people follow Martin Fowler&#039;s definition of treating like the logic engine for the View.  Other&#039;s call it a Mediator even though it&#039;s a Presenter.  Some frameworks take their own spin on it.  Basically, Mediator &#038; Presenter can mean any variation of &quot;Controller&quot; as you want.

Suffice to say, Presenter handles all the logic in the View, where as Mediator is supposed to be the View&#039;s gateway to talk to others.

A Mediator isn&#039;t supposed to &quot;hold the View&#039;s logic&quot; although in smaller apps, he often does in the case of Mediators in PureMVC or Robotlegs.  For some, they take it a step farther and clearly define the responsibilities, like &lt;a href=&quot;http://elromdesign.com/blog/2010/01/23/robotlegs-presentation-model-access-entire-component-events-lifecycle/&quot; rel=&quot;nofollow&quot;&gt;Elad&#039;s Presenter Robotlegs example.&lt;/a&gt;

So, while Presenter isn&#039;t abused a lot, Mediator is... because in Flash, Mediator&#039;s basically are Presenters in a lot of implementations I&#039;ve seen.

For example, PureMVC &#038; Robotlegs both &quot;typically&quot; have 1 View injected into the Mediator.  Yet... the &quot;Mediator&quot; holds a lot of logic for the View, and allows it to communicate to other View&#039;s via Notifications/Events.  MOST implementations I&#039;ve seen are like this.  However, these &quot;Mediators&quot; suddenly take on a LOT of the View logic... thus making them act more like Presenters.

Read Elad&#039;s article, that may give you another perspective.  OR, check out how people are using the Passive View in Swiz.  That&#039;s a more evolved pattern that is especially suited to Flex devs who are wanting more guidance in their code behind implementations.  &lt;a href=&quot;http://www.benclinkinbeard.com/2009/10/swiz-example-application-with-passive-view-pattern/&quot; rel=&quot;nofollow&quot;&gt;Ben&lt;/a&gt;,  who works on Swiz has one, and Brian Riley has a &lt;a href=&quot;http://www.webappsolution.com/wordpress/2010/01/06/swiz-passive-view-example-part-1/&quot; rel=&quot;nofollow&quot;&gt;Part 1&lt;/a&gt; and &lt;a href=&quot;http://www.webappsolution.com/wordpress/2010/01/07/swiz-passive-view-example-part-2/&quot; rel=&quot;nofollow&quot;&gt;Part 2&lt;/a&gt; example as well.]]></description>
			<content:encoded><![CDATA[<p>Yup.  The definitions of Presenter &amp; Mediator in &#8220;the Flash world&#8221; are muddied, and I apologize doing it myself whilst drinking.  Some people follow Martin Fowler&#8217;s definition of treating like the logic engine for the View.  Other&#8217;s call it a Mediator even though it&#8217;s a Presenter.  Some frameworks take their own spin on it.  Basically, Mediator &amp; Presenter can mean any variation of &#8220;Controller&#8221; as you want.</p>
<p>Suffice to say, Presenter handles all the logic in the View, where as Mediator is supposed to be the View&#8217;s gateway to talk to others.</p>
<p>A Mediator isn&#8217;t supposed to &#8220;hold the View&#8217;s logic&#8221; although in smaller apps, he often does in the case of Mediators in PureMVC or Robotlegs.  For some, they take it a step farther and clearly define the responsibilities, like <a href="http://elromdesign.com/blog/2010/01/23/robotlegs-presentation-model-access-entire-component-events-lifecycle/" rel="nofollow">Elad&#8217;s Presenter Robotlegs example.</a></p>
<p>So, while Presenter isn&#8217;t abused a lot, Mediator is&#8230; because in Flash, Mediator&#8217;s basically are Presenters in a lot of implementations I&#8217;ve seen.</p>
<p>For example, PureMVC &amp; Robotlegs both &#8220;typically&#8221; have 1 View injected into the Mediator.  Yet&#8230; the &#8220;Mediator&#8221; holds a lot of logic for the View, and allows it to communicate to other View&#8217;s via Notifications/Events.  MOST implementations I&#8217;ve seen are like this.  However, these &#8220;Mediators&#8221; suddenly take on a LOT of the View logic&#8230; thus making them act more like Presenters.</p>
<p>Read Elad&#8217;s article, that may give you another perspective.  OR, check out how people are using the Passive View in Swiz.  That&#8217;s a more evolved pattern that is especially suited to Flex devs who are wanting more guidance in their code behind implementations.  <a href="http://www.benclinkinbeard.com/2009/10/swiz-example-application-with-passive-view-pattern/" rel="nofollow">Ben</a>,  who works on Swiz has one, and Brian Riley has a <a href="http://www.webappsolution.com/wordpress/2010/01/06/swiz-passive-view-example-part-1/" rel="nofollow">Part 1</a> and <a href="http://www.webappsolution.com/wordpress/2010/01/07/swiz-passive-view-example-part-2/" rel="nofollow">Part 2</a> example as well.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Adam		</title>
		<link>https://jessewarden.com/2010/01/1-vs-many-mediator-vs-presenter-30-mins-jxltv-episode-1.html/comment-page-1#comment-220913</link>

		<dc:creator><![CDATA[Adam]]></dc:creator>
		<pubDate>Thu, 28 Jan 2010 22:49:24 +0000</pubDate>
		<guid isPermaLink="false">http://jessewarden.com/?p=1954#comment-220913</guid>

					<description><![CDATA[Tell me if I&#039;m wrong, but I am sure you explain the differences between presenter/mediator then you recap, but you switch the differences! Did anyone else notice?

This is in reference to &quot;talking to multiple views&quot; or &quot;one view&quot;.]]></description>
			<content:encoded><![CDATA[<p>Tell me if I&#8217;m wrong, but I am sure you explain the differences between presenter/mediator then you recap, but you switch the differences! Did anyone else notice?</p>
<p>This is in reference to &#8220;talking to multiple views&#8221; or &#8220;one view&#8221;.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Brian Riley		</title>
		<link>https://jessewarden.com/2010/01/1-vs-many-mediator-vs-presenter-30-mins-jxltv-episode-1.html/comment-page-1#comment-220430</link>

		<dc:creator><![CDATA[Brian Riley]]></dc:creator>
		<pubDate>Tue, 26 Jan 2010 17:01:49 +0000</pubDate>
		<guid isPermaLink="false">http://jessewarden.com/?p=1954#comment-220430</guid>

					<description><![CDATA[Good info, laffs, and beer all at the same time -- keep&#039;em coming kid!]]></description>
			<content:encoded><![CDATA[<p>Good info, laffs, and beer all at the same time &#8212; keep&#8217;em coming kid!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: jfroom		</title>
		<link>https://jessewarden.com/2010/01/1-vs-many-mediator-vs-presenter-30-mins-jxltv-episode-1.html/comment-page-1#comment-218997</link>

		<dc:creator><![CDATA[jfroom]]></dc:creator>
		<pubDate>Tue, 19 Jan 2010 05:15:16 +0000</pubDate>
		<guid isPermaLink="false">http://jessewarden.com/?p=1954#comment-218997</guid>

					<description><![CDATA[two thumbs up]]></description>
			<content:encoded><![CDATA[<p>two thumbs up</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
