<?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: Flex Chronicles #14: Cairngorm &#038; ARP &#8211; ViewHelper, ViewLocator, &#038; Commands	</title>
	<atom:link href="https://jessewarden.com/2006/01/flex-chronicles-14-cairngorm-arp-viewhelper-viewlocator-commands.html/feed" rel="self" type="application/rss+xml" />
	<link>https://jessewarden.com/2006/01/flex-chronicles-14-cairngorm-arp-viewhelper-viewlocator-commands.html</link>
	<description>Software &#124; Fitness &#124; Gaming</description>
	<lastBuildDate>Tue, 17 Jan 2006 22:18:39 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>
		By: riley		</title>
		<link>https://jessewarden.com/2006/01/flex-chronicles-14-cairngorm-arp-viewhelper-viewlocator-commands.html/comment-page-1#comment-3266</link>

		<dc:creator><![CDATA[riley]]></dc:creator>
		<pubDate>Tue, 17 Jan 2006 22:18:39 +0000</pubDate>
		<guid isPermaLink="false">http://jessewarden.com/?p=952#comment-3266</guid>

					<description><![CDATA[Jesse:

...since this post was started in the Flex / Cairngorm vein, and I don&#039;t even want to start to ignite the MVC discussion, I&#039;ll go with yup, it does &#039;it all comes back to how people think Controller code should be written.&#039; ;-)

..and yes, I also totally agree with this:

&#039;modified Commands to have a resultFunction; much like a Delegate, Commands can now call a function in a specific, pre-assigned scope when completed rather than some implied known function on viewRef.&#039;

as I did the same thing. I find myself almost always adding in scope and callbacks (both result and status) to objects that perform services and what not.

[slightly OT]...in fact, speaking of services, I did exactly that for my XMLService object. I found that many clients have been / continue to leverage XML as their data vehicle -- even more so now with all the new XML APIs -- so I created a an XMLService object that&#039;s modeled after the remoting API for ARP -- returns a Result or Fault object. I then added a CSSService and LoadVarsService object as well. Mind you, I did this for ARP and haven&#039;t decided if necessary or warranted in Cairngorm.

...sorry, I realize this was slightly off-topic, but I&#039;ve also been engulfed with the new additions to ARP 3 that Aral&#039;s suggesting, and thus, I&#039;ve been just waiting to dive into the future framework as well as hear what everyone thinks...to that, it&#039;d be interesting to know if Aral&#039;s planning on an AS2 and AS3 vr of ARP3...

I&#039;ll end with, runtime type checking...good schtuff.


]]></description>
			<content:encoded><![CDATA[<p>Jesse:</p>
<p>&#8230;since this post was started in the Flex / Cairngorm vein, and I don&#8217;t even want to start to ignite the MVC discussion, I&#8217;ll go with yup, it does &#8216;it all comes back to how people think Controller code should be written.&#8217; ;-)</p>
<p>..and yes, I also totally agree with this:</p>
<p>&#8216;modified Commands to have a resultFunction; much like a Delegate, Commands can now call a function in a specific, pre-assigned scope when completed rather than some implied known function on viewRef.&#8217;</p>
<p>as I did the same thing. I find myself almost always adding in scope and callbacks (both result and status) to objects that perform services and what not.</p>
<p>[slightly OT]&#8230;in fact, speaking of services, I did exactly that for my XMLService object. I found that many clients have been / continue to leverage XML as their data vehicle &#8212; even more so now with all the new XML APIs &#8212; so I created a an XMLService object that&#8217;s modeled after the remoting API for ARP &#8212; returns a Result or Fault object. I then added a CSSService and LoadVarsService object as well. Mind you, I did this for ARP and haven&#8217;t decided if necessary or warranted in Cairngorm.</p>
<p>&#8230;sorry, I realize this was slightly off-topic, but I&#8217;ve also been engulfed with the new additions to ARP 3 that Aral&#8217;s suggesting, and thus, I&#8217;ve been just waiting to dive into the future framework as well as hear what everyone thinks&#8230;to that, it&#8217;d be interesting to know if Aral&#8217;s planning on an AS2 and AS3 vr of ARP3&#8230;</p>
<p>I&#8217;ll end with, runtime type checking&#8230;good schtuff.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: JesterXL		</title>
		<link>https://jessewarden.com/2006/01/flex-chronicles-14-cairngorm-arp-viewhelper-viewlocator-commands.html/comment-page-1#comment-3265</link>

		<dc:creator><![CDATA[JesterXL]]></dc:creator>
		<pubDate>Tue, 17 Jan 2006 21:27:04 +0000</pubDate>
		<guid isPermaLink="false">http://jessewarden.com/?p=952#comment-3265</guid>

					<description><![CDATA[Thanks Riley and thanks for sharing your experiences!

To me, the Commands in Cairngorm have context based on how they are supposed to run based on the event it gets in the execute function.  This event has the data you passed it from the event.  So, technically, it is a roundabout way of doing my change to ARP of CommandRegistry; allowing the Application more control over the context in which a command runs.  So, yes, Aral even suggested I relax, and use handleEvent since I can intercept any event, and handle as I please.  In ARP, that felt too limiting, hence my need for a Command to have a result handler to call vs. having it update data itself, or use a ViewHelper.  Instead, I wanted to let the Application handle context.  This leads in nicely to chaining commands.  I&#039;m aware Cairngorm already has this, but I dig all of that happening in the Application.

In Cairngorm, I&#039;m still getting used to &#039;Hey command, here&#039;s your context in which to run based on the data I passed in as the 2nd parameter to the event.&#039;  Does it work by design?  Sure.  I guess I just feel uncomfortable passing arbritary/vanilla objects that they themselves have context.  For example, ActionScript 3 encourages the events be actual classes that extend flash.display.Event.  This allows great context to the restult handlers who handle the events since the events have strict-typing on the data they have, and there is no misunderstanding on the context of the event.  If there is, you get a runtime exception.

However, in retrospect, it&#039;s totally cool.  We have a somewhat strictly typed language that&#039;s easily hacked around, and Cairngorm is at version 1, Flex at 1.5.  So, again, I retierate I love &#039;em (the frameworks), and can&#039;t live without them.  I just think there is tons of room for improvement which ActionScript 3 will help with a lot.  From a theory perspective, the ViewHelper vs. View -&gt; bind to ModelLocator is already promoted.  It all comes back to how people think Controller code should be written which is a varied topic.]]></description>
			<content:encoded><![CDATA[<p>Thanks Riley and thanks for sharing your experiences!</p>
<p>To me, the Commands in Cairngorm have context based on how they are supposed to run based on the event it gets in the execute function.  This event has the data you passed it from the event.  So, technically, it is a roundabout way of doing my change to ARP of CommandRegistry; allowing the Application more control over the context in which a command runs.  So, yes, Aral even suggested I relax, and use handleEvent since I can intercept any event, and handle as I please.  In ARP, that felt too limiting, hence my need for a Command to have a result handler to call vs. having it update data itself, or use a ViewHelper.  Instead, I wanted to let the Application handle context.  This leads in nicely to chaining commands.  I&#8217;m aware Cairngorm already has this, but I dig all of that happening in the Application.</p>
<p>In Cairngorm, I&#8217;m still getting used to &#8216;Hey command, here&#8217;s your context in which to run based on the data I passed in as the 2nd parameter to the event.&#8217;  Does it work by design?  Sure.  I guess I just feel uncomfortable passing arbritary/vanilla objects that they themselves have context.  For example, ActionScript 3 encourages the events be actual classes that extend flash.display.Event.  This allows great context to the restult handlers who handle the events since the events have strict-typing on the data they have, and there is no misunderstanding on the context of the event.  If there is, you get a runtime exception.</p>
<p>However, in retrospect, it&#8217;s totally cool.  We have a somewhat strictly typed language that&#8217;s easily hacked around, and Cairngorm is at version 1, Flex at 1.5.  So, again, I retierate I love &#8217;em (the frameworks), and can&#8217;t live without them.  I just think there is tons of room for improvement which ActionScript 3 will help with a lot.  From a theory perspective, the ViewHelper vs. View -> bind to ModelLocator is already promoted.  It all comes back to how people think Controller code should be written which is a varied topic.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: riley		</title>
		<link>https://jessewarden.com/2006/01/flex-chronicles-14-cairngorm-arp-viewhelper-viewlocator-commands.html/comment-page-1#comment-3264</link>

		<dc:creator><![CDATA[riley]]></dc:creator>
		<pubDate>Tue, 17 Jan 2006 18:10:46 +0000</pubDate>
		<guid isPermaLink="false">http://jessewarden.com/?p=952#comment-3264</guid>

					<description><![CDATA[One of the inherent and very obvious differences in Flex and Flash is the clear separation of presentation from biz logic (MXML and AS), so the ability to update / interrogate a view in Flex with a ViewHelper, an additional class that further facilitates the decoupling of pres and biz logic, totally works for me. In addition, I liked the fact that my view was nothing more than a *dumb* view ]]></description>
			<content:encoded><![CDATA[<p>One of the inherent and very obvious differences in Flex and Flash is the clear separation of presentation from biz logic (MXML and AS), so the ability to update / interrogate a view in Flex with a ViewHelper, an additional class that further facilitates the decoupling of pres and biz logic, totally works for me. In addition, I liked the fact that my view was nothing more than a *dumb* view </p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: bokel		</title>
		<link>https://jessewarden.com/2006/01/flex-chronicles-14-cairngorm-arp-viewhelper-viewlocator-commands.html/comment-page-1#comment-3263</link>

		<dc:creator><![CDATA[bokel]]></dc:creator>
		<pubDate>Mon, 16 Jan 2006 21:19:35 +0000</pubDate>
		<guid isPermaLink="false">http://jessewarden.com/?p=952#comment-3263</guid>

					<description><![CDATA[Hi Jesse, 

i&#039;m neither using Caingrom, nor Arp on an everyday base, but to me the split between View and ViewHelper is very useful. I like to keep my views as dump as possible. All they contain is setter/getters for the data to display and maybe they emit some events, if it is an interactive view, but nothing more. If i want to test this view, i don&#039;t need the whole framework to work, but just a little dummy class, which calls the setters with some fake data. On the other hand, if i need to test the rest of the application, i can simply replace the view with a dummy, which does automatically, whatever i want to test. 

So what the helper basically does, is separating two subsystems. 

Cheers,
Ralf.]]></description>
			<content:encoded><![CDATA[<p>Hi Jesse, </p>
<p>i&#8217;m neither using Caingrom, nor Arp on an everyday base, but to me the split between View and ViewHelper is very useful. I like to keep my views as dump as possible. All they contain is setter/getters for the data to display and maybe they emit some events, if it is an interactive view, but nothing more. If i want to test this view, i don&#8217;t need the whole framework to work, but just a little dummy class, which calls the setters with some fake data. On the other hand, if i need to test the rest of the application, i can simply replace the view with a dummy, which does automatically, whatever i want to test. </p>
<p>So what the helper basically does, is separating two subsystems. </p>
<p>Cheers,<br />
Ralf.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: JesterXL		</title>
		<link>https://jessewarden.com/2006/01/flex-chronicles-14-cairngorm-arp-viewhelper-viewlocator-commands.html/comment-page-1#comment-3262</link>

		<dc:creator><![CDATA[JesterXL]]></dc:creator>
		<pubDate>Mon, 16 Jan 2006 03:59:50 +0000</pubDate>
		<guid isPermaLink="false">http://jessewarden.com/?p=952#comment-3262</guid>

					<description><![CDATA[Steven, thanks for the clarifications.  I&#039;ve only found one use case that confirms the above about changing data.  That&#039;s 1 in 60 Views, equaling 1 need for a ViewHelper out of 59 that don&#039;t, and work just find with binding as described above.  It makes me feel better to know this is the preferred way to develop in Cairngorm.]]></description>
			<content:encoded><![CDATA[<p>Steven, thanks for the clarifications.  I&#8217;ve only found one use case that confirms the above about changing data.  That&#8217;s 1 in 60 Views, equaling 1 need for a ViewHelper out of 59 that don&#8217;t, and work just find with binding as described above.  It makes me feel better to know this is the preferred way to develop in Cairngorm.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
