<?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: Adding Dependency Injection to Cairngorm 2.x via SwiftSuspenders (or Robotlegs) for Middle Tier Mocking	</title>
	<atom:link href="https://jessewarden.com/2011/05/adding-dependency-injection-to-cairngorm-2-x-via-swiftsuspenders-or-robotlegs-for-middle-tier-mocking.html/feed" rel="self" type="application/rss+xml" />
	<link>https://jessewarden.com/2011/05/adding-dependency-injection-to-cairngorm-2-x-via-swiftsuspenders-or-robotlegs-for-middle-tier-mocking.html</link>
	<description>Software &#124; Fitness &#124; Gaming</description>
	<lastBuildDate>Thu, 09 Jun 2011 13:41:01 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>
		By: Flash Builder Custom Compiler Arguments		</title>
		<link>https://jessewarden.com/2011/05/adding-dependency-injection-to-cairngorm-2-x-via-swiftsuspenders-or-robotlegs-for-middle-tier-mocking.html/comment-page-1#comment-242518</link>

		<dc:creator><![CDATA[Flash Builder Custom Compiler Arguments]]></dc:creator>
		<pubDate>Thu, 09 Jun 2011 13:41:01 +0000</pubDate>
		<guid isPermaLink="false">http://jessewarden.com/?p=2699#comment-242518</guid>

					<description><![CDATA[[...] I found the solution on another post here. Very [...]]]></description>
			<content:encoded><![CDATA[<p>[&#8230;] I found the solution on another post here. Very [&#8230;]</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Mark Lapasa		</title>
		<link>https://jessewarden.com/2011/05/adding-dependency-injection-to-cairngorm-2-x-via-swiftsuspenders-or-robotlegs-for-middle-tier-mocking.html/comment-page-1#comment-242515</link>

		<dc:creator><![CDATA[Mark Lapasa]]></dc:creator>
		<pubDate>Wed, 08 Jun 2011 20:08:01 +0000</pubDate>
		<guid isPermaLink="false">http://jessewarden.com/?p=2699#comment-242515</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://jessewarden.com/2011/05/adding-dependency-injection-to-cairngorm-2-x-via-swiftsuspenders-or-robotlegs-for-middle-tier-mocking.html/comment-page-1#comment-242487&quot;&gt;JesterXL&lt;/a&gt;.

When you&#039;re server isn&#039;t ready or is unreliable, the lack of an available connector to a datasource (Which is the role of a Delegate in CG) is not the real bottleneck of driving the UI forward. It&#039;s the absence of data to bind to which is the real problem.

If someone was trying to mock up the delegate layer, it tells others that the encoding/decoding of data is indeterminate, whether AMF, SOAP, rest, URL Encoded, anything to do with transmission of data, etc.

If you already have a domain model that defines the VO&#039;s on the client side, the real bottleneck of a UI is solved by creating a mock model made of hard-coded dummy data. Because this is a mock model, it&#039;ll likely implement a common interface. When it comes time to Integration, you can easily substitute the DummyModel for one that can populated live by the delegate because it implements a common interface. This approach is more useful when trying to do unit testing on commands as your ModelLocator can return you a mock model. Unit testing the delegate is less useful as it&#039;s just a matter or not did the data get send over the wire or not, regardless of the content of the data.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://jessewarden.com/2011/05/adding-dependency-injection-to-cairngorm-2-x-via-swiftsuspenders-or-robotlegs-for-middle-tier-mocking.html/comment-page-1#comment-242487">JesterXL</a>.</p>
<p>When you&#8217;re server isn&#8217;t ready or is unreliable, the lack of an available connector to a datasource (Which is the role of a Delegate in CG) is not the real bottleneck of driving the UI forward. It&#8217;s the absence of data to bind to which is the real problem.</p>
<p>If someone was trying to mock up the delegate layer, it tells others that the encoding/decoding of data is indeterminate, whether AMF, SOAP, rest, URL Encoded, anything to do with transmission of data, etc.</p>
<p>If you already have a domain model that defines the VO&#8217;s on the client side, the real bottleneck of a UI is solved by creating a mock model made of hard-coded dummy data. Because this is a mock model, it&#8217;ll likely implement a common interface. When it comes time to Integration, you can easily substitute the DummyModel for one that can populated live by the delegate because it implements a common interface. This approach is more useful when trying to do unit testing on commands as your ModelLocator can return you a mock model. Unit testing the delegate is less useful as it&#8217;s just a matter or not did the data get send over the wire or not, regardless of the content of the data.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: JesterXL		</title>
		<link>https://jessewarden.com/2011/05/adding-dependency-injection-to-cairngorm-2-x-via-swiftsuspenders-or-robotlegs-for-middle-tier-mocking.html/comment-page-1#comment-242488</link>

		<dc:creator><![CDATA[JesterXL]]></dc:creator>
		<pubDate>Fri, 27 May 2011 14:34:12 +0000</pubDate>
		<guid isPermaLink="false">http://jessewarden.com/?p=2699#comment-242488</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://jessewarden.com/2011/05/adding-dependency-injection-to-cairngorm-2-x-via-swiftsuspenders-or-robotlegs-for-middle-tier-mocking.html/comment-page-1#comment-242480&quot;&gt;Brian&lt;/a&gt;.

I&#039;m aware of Mockolate (she&#039;s pretty advanced for this topic), but TOTALLY forgot about Mockito, and never heard of  your RPC stubs. These are great, thank you very much!

Yeah, I&#039;ve done fakes too; basically save the AMF data as a ByteArray into a SharedObject, and thenceforth load the binary data. Wasn&#039;t aware it was a pattern, haha. That link will be helpful in my consulting, thank you again!]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://jessewarden.com/2011/05/adding-dependency-injection-to-cairngorm-2-x-via-swiftsuspenders-or-robotlegs-for-middle-tier-mocking.html/comment-page-1#comment-242480">Brian</a>.</p>
<p>I&#8217;m aware of Mockolate (she&#8217;s pretty advanced for this topic), but TOTALLY forgot about Mockito, and never heard of  your RPC stubs. These are great, thank you very much!</p>
<p>Yeah, I&#8217;ve done fakes too; basically save the AMF data as a ByteArray into a SharedObject, and thenceforth load the binary data. Wasn&#8217;t aware it was a pattern, haha. That link will be helpful in my consulting, thank you again!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: JesterXL		</title>
		<link>https://jessewarden.com/2011/05/adding-dependency-injection-to-cairngorm-2-x-via-swiftsuspenders-or-robotlegs-for-middle-tier-mocking.html/comment-page-1#comment-242487</link>

		<dc:creator><![CDATA[JesterXL]]></dc:creator>
		<pubDate>Fri, 27 May 2011 14:29:47 +0000</pubDate>
		<guid isPermaLink="false">http://jessewarden.com/?p=2699#comment-242487</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://jessewarden.com/2011/05/adding-dependency-injection-to-cairngorm-2-x-via-swiftsuspenders-or-robotlegs-for-middle-tier-mocking.html/comment-page-1#comment-242479&quot;&gt;Mark Lapasa&lt;/a&gt;.

Yep.

Our Model&#039;s aren&#039;t talking to the back-end, the BusinessDelegates are. The Model&#039;s, and the ValueObjects that are stored on it are real and match the back-end Java DTO&#039;s. So, no problem there; this is real data, no need to mock it.

When you&#039;re server isn&#039;t ready, or is unreliable, the BusinessDelegates become the bottleneck. This is my suggestion for how to fix it and ensure the team can move forward. Maybe I&#039;m misunderstanding what you&#039;re suggesting.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://jessewarden.com/2011/05/adding-dependency-injection-to-cairngorm-2-x-via-swiftsuspenders-or-robotlegs-for-middle-tier-mocking.html/comment-page-1#comment-242479">Mark Lapasa</a>.</p>
<p>Yep.</p>
<p>Our Model&#8217;s aren&#8217;t talking to the back-end, the BusinessDelegates are. The Model&#8217;s, and the ValueObjects that are stored on it are real and match the back-end Java DTO&#8217;s. So, no problem there; this is real data, no need to mock it.</p>
<p>When you&#8217;re server isn&#8217;t ready, or is unreliable, the BusinessDelegates become the bottleneck. This is my suggestion for how to fix it and ensure the team can move forward. Maybe I&#8217;m misunderstanding what you&#8217;re suggesting.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Ted		</title>
		<link>https://jessewarden.com/2011/05/adding-dependency-injection-to-cairngorm-2-x-via-swiftsuspenders-or-robotlegs-for-middle-tier-mocking.html/comment-page-1#comment-242482</link>

		<dc:creator><![CDATA[Ted]]></dc:creator>
		<pubDate>Thu, 26 May 2011 11:16:16 +0000</pubDate>
		<guid isPermaLink="false">http://jessewarden.com/?p=2699#comment-242482</guid>

					<description><![CDATA[I came across this concept when looking at Robotlegs and liked it then. Not a trained OO coder myself but practices like coding to Interfaces and using Value Objects should be learned early on imo. They are not as daunting as they might seem and learning them late can mean unlearning a lot of habits.]]></description>
			<content:encoded><![CDATA[<p>I came across this concept when looking at Robotlegs and liked it then. Not a trained OO coder myself but practices like coding to Interfaces and using Value Objects should be learned early on imo. They are not as daunting as they might seem and learning them late can mean unlearning a lot of habits.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
