<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Obecto Training Portal &#187; MVC</title>
	<atom:link href="http://training.obecto.com/tag/mvc/feed/" rel="self" type="application/rss+xml" />
	<link>http://training.obecto.com</link>
	<description>sharing our knowledge</description>
	<lastBuildDate>Wed, 24 Nov 2010 16:09:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>MVC Example &#8211; Refactored</title>
		<link>http://training.obecto.com/2009/07/mvc-example-refactored/</link>
		<comments>http://training.obecto.com/2009/07/mvc-example-refactored/#comments</comments>
		<pubDate>Thu, 09 Jul 2009 15:17:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[VMware Flex]]></category>
		<category><![CDATA[model adapter]]></category>
		<category><![CDATA[MVC]]></category>
		<category><![CDATA[refactore]]></category>

		<guid isPermaLink="false">http://training.obecto.com/?p=270</guid>
		<description><![CDATA[DOWNLOAD REFACTORED VERSION OF THE MVC EXAMPLE What&#8217;s included in the re-factored version? the MVC approach in now demonstrated not only for the module, but also for the item renderer used in the list component the model adapter pattern is demonstrated too some other minor refinements Adapting the Model into &#8230; <a href="http://training.obecto.com/2009/07/mvc-example-refactored/">More</a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://training.obecto.com/wp-content/uploads/2009/05/mvcexamplerefactored.zip">DOWNLOAD REFACTORED VERSION OF THE MVC EXAMPLE</a></p>
<p>What&#8217;s included in the re-factored version?</p>
<ul>
<li>the MVC approach in now demonstrated not only for the module, but also for the item renderer used in the list component</li>
<li>the model adapter pattern is demonstrated too</li>
<li>some other minor refinements</li>
</ul>
<h3>Adapting the Model into a Presentation Model</h3>
<p>Let&#8217;s see the Model Adapter pattern in more detail:</p>
<p>The MXML usage of the model adapter is pretty straight-forward &#8211; you can see this in the <em>StatisticsView.mxml</em>:</p>
<pre class="prettyprint" style="font-size: 12px; overflow: auto;">
&lt;programmerListItemModel:ProgrammerListItemModelAdapter id="modelAdapter"
    source="{model.programmers}"/&gt;
</pre>
<p>And then instead of using the <i>model.programmers</i> you can use <i>modelAdapter.resultCollection</i>:</p>
<pre class="prettyprint" style="font-size: 12px; overflow: auto;">
&lt;list:CustomLayoutList id="list" styleName="programmersList" width="550"
    layout="{model.inAdvancedView ? verticalLayout : fluidLayout}"
    dataProvider="{modelAdapter.resultCollection}"
    itemRenderer="{new ClassFactory(ProgrammerListItem)}"/&gt;
</pre>
<p>This adaptation is actually in a way demonstration of what means to have a pure abstract model and a presentation model (like in the MVP pattern).</p>
]]></content:encoded>
			<wfw:commentRss>http://training.obecto.com/2009/07/mvc-example-refactored/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flex Applications&#8217; Architecture</title>
		<link>http://training.obecto.com/2009/04/flex-applications-architecture/</link>
		<comments>http://training.obecto.com/2009/04/flex-applications-architecture/#comments</comments>
		<pubDate>Thu, 30 Apr 2009 09:32:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[VMware Flex]]></category>
		<category><![CDATA[architecture]]></category>
		<category><![CDATA[Cairngorm]]></category>
		<category><![CDATA[flex]]></category>
		<category><![CDATA[MVC]]></category>
		<category><![CDATA[MVP]]></category>
		<category><![CDATA[OpenFlux]]></category>
		<category><![CDATA[PureMVC]]></category>

		<guid isPermaLink="false">http://training.obecto.com/?p=154</guid>
		<description><![CDATA[DOWNLOAD SLIDES This talk is based on a series of articles I wrote last year: Introduction to Flex Application’s Architecture &#8211; Part 1 &#8211; Cairngorm Introduction to Flex Application’s Architecture &#8211; Part 2 &#8211; PureMVC Introduction to Flex Application’s Architecture &#8211; Part 3 &#8211; The Gugga Approach Since we&#8217;re gonna &#8230; <a href="http://training.obecto.com/2009/04/flex-applications-architecture/">More</a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://training.obecto.com/wp-content/uploads/2009/04/flex-applications-architecture.pdf">DOWNLOAD SLIDES</a></p>
<p>This talk is based on a series of articles I wrote last year:<br />
<a href="http://npacemo.com/wordpress/2008/05/28/introduction-to-flex-applications-architecture-part-1-cairngorm/">Introduction to Flex Application’s Architecture &#8211; Part 1 &#8211; Cairngorm</a><br />
<a href="http://npacemo.com/wordpress/2008/06/08/introduction-to-flex-applications-architecture-part-2-puremvc/">Introduction to Flex Application’s Architecture &#8211; Part 2 &#8211; PureMVC</a><br />
<a href="http://npacemo.com/wordpress/2008/10/03/introduction-to-flex-applications-architecture-part-3-the-gugga-approach/">Introduction to Flex Application’s Architecture &#8211; Part 3 &#8211; The Gugga Approach</a></p>
<p>Since we&#8217;re gonna compare a couple of architectures and some architectural approaches, it is important to establish a common ground in understanding why we need an architecture and what problems an architecture tries to solve.</p>
<h3>Why architecture is important?</h3>
<p>Architectures are important in situations where we need to:</p>
<ul>
<li>scale things up in both size and complexity</li>
<li>prepare and follow a plan</li>
</ul>
<p>The important thing to remember is that architectures are rarely obvious. And in most of the cases they emerge from the practice.</p>
<h3>MVC vs. MVP</h3>
<p>I&#8217;ve included some differences between MVC and MVP as I perceive them, but in the discussion with we ended up with the conclusion that <strong>&#8220;MVP is speculatively different from MVC&#8221;</strong>.</p>
<h3>Architectural Frameworks</h3>
<p>We&#8217;ve discussed the most popular architectural frameworks &#8211; Cairngorm and PureMVC, outlined their flaws and benefits, but mostly flaws. I&#8217;ve tried to persuade the audience in the need of a more granular approach, that can be applied not just on MACRO-application level, but also on a module level and even on component level of granularity.</p>
<p>It is important to note that the proposed ideas are not a complete architectural framework, but rather an approach. And since this is just an approach, there are no rigid rules &#8211; the developer must take his decisions without relying on strong and proven rules. The difficulty comes when you have to decide on what level of granularity you need to set up an MVC-infrastructure. Whether to have a single view and single controller and whether to have multiple views and many controllers?</p>
<p>Detailed sample is published in the next topic &#8211; <a href="http://training.obecto.com/2009/05/mvcs-example/">MVCS Example</a>.</p>
<h3>Great Comparison Between Frameworks</h3>
<p>The following is a great comparison between Flex architectural frameworks:</p>
<ul>
<li><a href="http://www.insideria.com/2008/12/frameworkquest-2008-introducti.html">Part 1 &#8211; Introduction</a></li>
<li><a href="http://www.insideria.com/2008/12/frameworkquest-2008-part-2-get.html">Part 2 &#8211; Get Control with Cairngorm</a></li>
<li><a href="http://www.insideria.com/2008/12/frameworkquest-2008-part-3-fra.html">Part 3 &#8211; Framework Agnostic Views with PureMVC</a></li>
<li><a href="http://www.insideria.com/2008/12/frameworkquest-2008-part-4-ioc.html">Part 4 &#8211; IoC with Swiz</a></li>
<li><a href="http://www.insideria.com/2008/12/frameworkquest-2008-part-5-mat.html">Part 5 &#8211; Mate, the Pure MXML Framework</a></li>
<li><a href="http://www.insideria.com/2009/01/frameworkquest-2008-part-6-the.html">Part 6 &#8211; The Exciting Conclusion</a></li>
</ul>
<p>This series of articles build the very same application but with different architectural approaches. The Source Code is available at <a href="http://github.com/thillerson/twitteria/tree/master">GitHub</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://training.obecto.com/2009/04/flex-applications-architecture/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

