<?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: Modeling Explicit Workflow With Code, In JavaScript And Backbone Apps</title>
	<atom:link href="http://lostechies.com/derickbailey/2012/05/10/modeling-explicit-workflow-with-code-in-javascript-and-backbone-apps/feed/" rel="self" type="application/rss+xml" />
	<link>http://lostechies.com/derickbailey/2012/05/10/modeling-explicit-workflow-with-code-in-javascript-and-backbone-apps/</link>
	<description>Better Than Yesterday</description>
	<lastBuildDate>Fri, 24 May 2013 06:39:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4.2</generator>
	<item>
		<title>By: OsoRojo</title>
		<link>http://lostechies.com/derickbailey/2012/05/10/modeling-explicit-workflow-with-code-in-javascript-and-backbone-apps/#comment-3065</link>
		<dc:creator>OsoRojo</dc:creator>
		<pubDate>Tue, 19 Feb 2013 15:50:00 +0000</pubDate>
		<guid isPermaLink="false">http://lostechies.com/derickbailey/?p=928#comment-3065</guid>
		<description>Derick, first off, awesome blog and work on Marionette. You&#039;ve done more to educate me via your posts, articles and videos (yes, I bought them) in just over a week than all of the internet in the previous 3 weeks combined doing BackboneJS research.  

What you seem to be describing here is something I think you later formalized as the Marionette.Controller object.  I&#039;m starting to understand the role of controllers as &#039;arbiters&#039;, &#039;mediators&#039; or even &#039;puppeteers&#039; (bad pun), but I get confused in how multiple controllers interact and how they interact with layouts.  An example is better.  Let&#039;s say I have an app with a layout and regions of: header, main, nav and footer that are managed by a controller.  I have a router holding that controller to respond to URL navigation, and the controller holds a reference to the layout and handles calling &#039;show&#039; for the various regions.  The controller can also respond to events that may be raised and respond to them by calling show, etc. as opposed to navigation via the URL.  All is good here and I think this is what you advocate.  

Now what happens when my header is also complex and has 3 regions of it&#039;s own?  It doesn&#039;t really message via the URL, so a router is inappropriate, but something still needs to call &#039;show&#039; on the header regions right?  It&#039;s also inappropriate that the constituent views of the header would hold a reference to the overall layout and call show themselves.  I think I need some higher level construct to coordinate the calling of show in that header, but the only controller I have is currently handling the overall app layout, not the header layout.  Should that controller handle both?  Do I need another controller that responds to events raised by the header views and calls show on the header layout to change them?  What am I missing here?</description>
		<content:encoded><![CDATA[<p>Derick, first off, awesome blog and work on Marionette. You&#8217;ve done more to educate me via your posts, articles and videos (yes, I bought them) in just over a week than all of the internet in the previous 3 weeks combined doing BackboneJS research.  </p>
<p>What you seem to be describing here is something I think you later formalized as the Marionette.Controller object.  I&#8217;m starting to understand the role of controllers as &#8216;arbiters&#8217;, &#8216;mediators&#8217; or even &#8216;puppeteers&#8217; (bad pun), but I get confused in how multiple controllers interact and how they interact with layouts.  An example is better.  Let&#8217;s say I have an app with a layout and regions of: header, main, nav and footer that are managed by a controller.  I have a router holding that controller to respond to URL navigation, and the controller holds a reference to the layout and handles calling &#8216;show&#8217; for the various regions.  The controller can also respond to events that may be raised and respond to them by calling show, etc. as opposed to navigation via the URL.  All is good here and I think this is what you advocate.  </p>
<p>Now what happens when my header is also complex and has 3 regions of it&#8217;s own?  It doesn&#8217;t really message via the URL, so a router is inappropriate, but something still needs to call &#8216;show&#8217; on the header regions right?  It&#8217;s also inappropriate that the constituent views of the header would hold a reference to the overall layout and call show themselves.  I think I need some higher level construct to coordinate the calling of show in that header, but the only controller I have is currently handling the overall app layout, not the header layout.  Should that controller handle both?  Do I need another controller that responds to events raised by the header views and calls show on the header layout to change them?  What am I missing here?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Derick Bailey</title>
		<link>http://lostechies.com/derickbailey/2012/05/10/modeling-explicit-workflow-with-code-in-javascript-and-backbone-apps/#comment-2990</link>
		<dc:creator>Derick Bailey</dc:creator>
		<pubDate>Mon, 21 Jan 2013 22:03:00 +0000</pubDate>
		<guid isPermaLink="false">http://lostechies.com/derickbailey/?p=928#comment-2990</guid>
		<description>Wizards require a bit more than this. I wrote a library for a ciient project recently that creates a wizard process, and have been thinking about making it open source. It has a pre-requisite that makes it a bit tricky to get up and running, though. 

The general idea is that the step definition and navigation has to be separated from the step implementation. It&#039;s everything I talked about here, taken one step further in the abstraction.</description>
		<content:encoded><![CDATA[<p>Wizards require a bit more than this. I wrote a library for a ciient project recently that creates a wizard process, and have been thinking about making it open source. It has a pre-requisite that makes it a bit tricky to get up and running, though. </p>
<p>The general idea is that the step definition and navigation has to be separated from the step implementation. It&#8217;s everything I talked about here, taken one step further in the abstraction.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://lostechies.com/derickbailey/2012/05/10/modeling-explicit-workflow-with-code-in-javascript-and-backbone-apps/#comment-2974</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Sun, 13 Jan 2013 16:58:00 +0000</pubDate>
		<guid isPermaLink="false">http://lostechies.com/derickbailey/?p=928#comment-2974</guid>
		<description>Hi, how would you solve the back and forth logic which comes with a wizard. Putting the callbacks in a logical hierarchy makes a lot of sense to me but I dont know how to get the reverse logic of this.</description>
		<content:encoded><![CDATA[<p>Hi, how would you solve the back and forth logic which comes with a wizard. Putting the callbacks in a logical hierarchy makes a lot of sense to me but I dont know how to get the reverse logic of this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Derick Bailey</title>
		<link>http://lostechies.com/derickbailey/2012/05/10/modeling-explicit-workflow-with-code-in-javascript-and-backbone-apps/#comment-2455</link>
		<dc:creator>Derick Bailey</dc:creator>
		<pubDate>Thu, 17 May 2012 00:52:00 +0000</pubDate>
		<guid isPermaLink="false">http://lostechies.com/derickbailey/?p=928#comment-2455</guid>
		<description>that would be my next blog post after this one - though it&#039;s a slightly different example of the view implementations :) 

http://lostechies.com/derickbailey/2012/05/15/workflow-in-backbone-apps-triggering-view-events-from-dom-events/

</description>
		<content:encoded><![CDATA[<p>that would be my next blog post after this one &#8211; though it&#8217;s a slightly different example of the view implementations :) </p>
<p><a href="http://lostechies.com/derickbailey/2012/05/15/workflow-in-backbone-apps-triggering-view-events-from-dom-events/" rel="nofollow">http://lostechies.com/derickbailey/2012/05/15/workflow-in-backbone-apps-triggering-view-events-from-dom-events/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bessington</title>
		<link>http://lostechies.com/derickbailey/2012/05/10/modeling-explicit-workflow-with-code-in-javascript-and-backbone-apps/#comment-2454</link>
		<dc:creator>bessington</dc:creator>
		<pubDate>Thu, 17 May 2012 00:50:00 +0000</pubDate>
		<guid isPermaLink="false">http://lostechies.com/derickbailey/?p=928#comment-2454</guid>
		<description>dig this approach - can you show an example of how you would trigger the &#039;complete&#039; events for employee detail? tried to implement this but can&#039;t seem to get the events working..</description>
		<content:encoded><![CDATA[<p>dig this approach &#8211; can you show an example of how you would trigger the &#8216;complete&#8217; events for employee detail? tried to implement this but can&#8217;t seem to get the events working..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dagda1</title>
		<link>http://lostechies.com/derickbailey/2012/05/10/modeling-explicit-workflow-with-code-in-javascript-and-backbone-apps/#comment-2446</link>
		<dc:creator>dagda1</dc:creator>
		<pubDate>Mon, 14 May 2012 04:58:00 +0000</pubDate>
		<guid isPermaLink="false">http://lostechies.com/derickbailey/?p=928#comment-2446</guid>
		<description>I think Ember like bindings is one of the main things missing from backbone.  These keep the code loosely coupled and lean.  You do have the events object in Backbone but you have to write all the code to  create and trigger the event.  The bindings model in Ember is very rich.</description>
		<content:encoded><![CDATA[<p>I think Ember like bindings is one of the main things missing from backbone.  These keep the code loosely coupled and lean.  You do have the events object in Backbone but you have to write all the code to  create and trigger the event.  The bindings model in Ember is very rich.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dustin Boston</title>
		<link>http://lostechies.com/derickbailey/2012/05/10/modeling-explicit-workflow-with-code-in-javascript-and-backbone-apps/#comment-2442</link>
		<dc:creator>Dustin Boston</dc:creator>
		<pubDate>Thu, 10 May 2012 21:54:00 +0000</pubDate>
		<guid isPermaLink="false">http://lostechies.com/derickbailey/?p=928#comment-2442</guid>
		<description>Yay controllers in Backbone! Love it!</description>
		<content:encoded><![CDATA[<p>Yay controllers in Backbone! Love it!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://lostechies.com/derickbailey/2012/05/10/modeling-explicit-workflow-with-code-in-javascript-and-backbone-apps/#comment-2441</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Thu, 10 May 2012 21:20:00 +0000</pubDate>
		<guid isPermaLink="false">http://lostechies.com/derickbailey/?p=928#comment-2441</guid>
		<description>I think Node.js helps with this pattern a bit; I dislike seeing all the nested stuff so I end up separating things into smaller chunks, which makes the &quot;big&quot; methods much smaller and easy to read.

For example, I was doing a screen scraping proof of concept and what I *could* have done was do a deeply nested monster that went through about 4 HTTP requests and processed the results, but I didn&#039;t, I created separate handlers for each step of the process and just separated them out so I could reduce redundant code and add error handling in the process. It was a simple proof but just by doing it in Node forced me to restructure how I did it.</description>
		<content:encoded><![CDATA[<p>I think Node.js helps with this pattern a bit; I dislike seeing all the nested stuff so I end up separating things into smaller chunks, which makes the &#8220;big&#8221; methods much smaller and easy to read.</p>
<p>For example, I was doing a screen scraping proof of concept and what I *could* have done was do a deeply nested monster that went through about 4 HTTP requests and processed the results, but I didn&#8217;t, I created separate handlers for each step of the process and just separated them out so I could reduce redundant code and add error handling in the process. It was a simple proof but just by doing it in Node forced me to restructure how I did it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Derick Bailey</title>
		<link>http://lostechies.com/derickbailey/2012/05/10/modeling-explicit-workflow-with-code-in-javascript-and-backbone-apps/#comment-2439</link>
		<dc:creator>Derick Bailey</dc:creator>
		<pubDate>Thu, 10 May 2012 17:58:00 +0000</pubDate>
		<guid isPermaLink="false">http://lostechies.com/derickbailey/?p=928#comment-2439</guid>
		<description>I really need to read Clean Code. I think I have it on my Kindle, but have never got around to it. :P

And yeah, the asynchronous bit with the callbacks kind of drives me nuts some times. There&#039;s a handful of things that can be done to reduce the nesting of callbacks, but sometimes that ends up reducing the readability and understandability of the code, for the sake of keeping it &quot;clean&quot;. It&#039;s hard to find those balances.</description>
		<content:encoded><![CDATA[<p>I really need to read Clean Code. I think I have it on my Kindle, but have never got around to it. :P</p>
<p>And yeah, the asynchronous bit with the callbacks kind of drives me nuts some times. There&#8217;s a handful of things that can be done to reduce the nesting of callbacks, but sometimes that ends up reducing the readability and understandability of the code, for the sake of keeping it &#8220;clean&#8221;. It&#8217;s hard to find those balances.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tyronemichael</title>
		<link>http://lostechies.com/derickbailey/2012/05/10/modeling-explicit-workflow-with-code-in-javascript-and-backbone-apps/#comment-2438</link>
		<dc:creator>Tyronemichael</dc:creator>
		<pubDate>Thu, 10 May 2012 17:38:00 +0000</pubDate>
		<guid isPermaLink="false">http://lostechies.com/derickbailey/?p=928#comment-2438</guid>
		<description>I needed this. I am constantly looking for patterns with regards to large scale applications and backbone.js. The premise of the simplicity and organization backbone provides is easily said than done. I definitely need to find a pattern that seprates logic into more readable and maintainable codebase. This definitely provides an idea so thank you!</description>
		<content:encoded><![CDATA[<p>I needed this. I am constantly looking for patterns with regards to large scale applications and backbone.js. The premise of the simplicity and organization backbone provides is easily said than done. I definitely need to find a pattern that seprates logic into more readable and maintainable codebase. This definitely provides an idea so thank you!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
