<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>LosTechies - Latest Comments</title><link xmlns="http://www.w3.org/2005/Atom" rel="http://api.friendfeed.com/2008/03#sup" href="http://disqus.com/sup/all.sup#forumcomments-0cc84a9f" type="application/json"/><link>http://derickbailey-lostechies.disqus.com/</link><description></description><atom:link href="http://derickbailey-lostechies.disqus.com/comments.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Wed, 16 May 2012 10:02:26 -0000</lastBuildDate><item><title>Re: References, Routing, And The Event Aggregator: Coordinating Views In Backbone.js</title><link>http://lostechies.com/derickbailey/2011/07/19/references-routing-and-the-event-aggregator-coordinating-views-in-backbone-js/#comment-530277867</link><description>&lt;p&gt;I just started working on my first very complex backbone app, and you have saved me a lot of pain, agony, and irritation here.  Thank you.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Dgabriel</dc:creator><pubDate>Wed, 16 May 2012 10:02:26 -0000</pubDate></item><item><title>Re: Zombies! RUN! (Managing Page Transitions In Backbone Apps)</title><link>http://lostechies.com/derickbailey/2011/09/15/zombies-run-managing-page-transitions-in-backbone-apps/#comment-529457496</link><description>&lt;p&gt;Really neat solution to this problem. Love it!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ansjob</dc:creator><pubDate>Tue, 15 May 2012 13:52:48 -0000</pubDate></item><item><title>Re: Workflow In Backbone Apps: Triggering View Events From DOM Events</title><link>http://lostechies.com/derickbailey/2012/05/15/workflow-in-backbone-apps-triggering-view-events-from-dom-events/#comment-529274892</link><description>&lt;p&gt;I've used Backbone and Ember in roughly equal amounts and the Ember bindings model is a much leaner, looser coupled and all round better way of dealing with things.&lt;/p&gt;

&lt;p&gt;I can have several parts of my app updating from one change using bindings.  For example:&lt;/p&gt;

&lt;p&gt;&lt;a href="http://bit.ly/KYFmW5" rel="nofollow"&gt;http://bit.ly/KYFmW5&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In the above example I have  a queryBinding where I specify the path to the bound object.  Once that object changes, I perform a transform and the change gets published to any subscribers like the queryDidChange handler in the above gist.  The from path specifies the path to the object that it is bound to.  I can have several other observers throughout my app and observers on these observers etc.  and this is all synchronised beautifully without me having to write any additional code.&lt;/p&gt;

&lt;p&gt;BTW, I use Backbone.Marionette on any legacy backbone apps and it has been a real time saver.  It really does take the pain out of backbone.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">dagda1</dc:creator><pubDate>Tue, 15 May 2012 09:47:29 -0000</pubDate></item><item><title>Re: Git: Oops. I Forgot To Add Those New Files Before Committing</title><link>http://lostechies.com/derickbailey/2010/06/09/git-oops-i-forgot-to-add-those-new-files-before-committing/#comment-528299489</link><description>&lt;p&gt;Nice.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Guest</dc:creator><pubDate>Mon, 14 May 2012 02:33:05 -0000</pubDate></item><item><title>Re: Modeling Explicit Workflow With Code, In JavaScript And Backbone Apps</title><link>http://lostechies.com/derickbailey/2012/05/10/modeling-explicit-workflow-with-code-in-javascript-and-backbone-apps/#comment-528270501</link><description>&lt;p&gt;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.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">dagda1</dc:creator><pubDate>Mon, 14 May 2012 00:58:58 -0000</pubDate></item><item><title>Re: Zombies! RUN! (Managing Page Transitions In Backbone Apps)</title><link>http://lostechies.com/derickbailey/2011/09/15/zombies-run-managing-page-transitions-in-backbone-apps/#comment-526793534</link><description>&lt;p&gt; Excelente articulo muchas gracias.&lt;br&gt;Yo intente realizarlo de una forma alternativa y obtuve lo siguiente:&lt;/p&gt;

&lt;p&gt;&lt;a href="http://stackoverflow.com/a/10559519/1359480" rel="nofollow"&gt;http://stackoverflow.com/a/105...&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Cristhian Valencia</dc:creator><pubDate>Fri, 11 May 2012 18:54:45 -0000</pubDate></item><item><title>Re: Don&amp;#8217;t Execute A Backbone.js Route Handler From Your Code</title><link>http://lostechies.com/derickbailey/2011/08/28/dont-execute-a-backbone-js-route-handler-from-your-code/#comment-526156727</link><description>&lt;p&gt;This is good, but what about when you have to wait for an asynchronous response when the user submits a form to change view, the router needs to wait for the async success callback to fire before routing to the new view. I read your articles, and I see they are very helpful. Thanks!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">chandra</dc:creator><pubDate>Fri, 11 May 2012 05:59:43 -0000</pubDate></item><item><title>Re: Modeling Explicit Workflow With Code, In JavaScript And Backbone Apps</title><link>http://lostechies.com/derickbailey/2012/05/10/modeling-explicit-workflow-with-code-in-javascript-and-backbone-apps/#comment-525812137</link><description>&lt;p&gt;Yay controllers in Backbone! Love it!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Dustin Boston</dc:creator><pubDate>Thu, 10 May 2012 17:54:24 -0000</pubDate></item><item><title>Re: Modeling Explicit Workflow With Code, In JavaScript And Backbone Apps</title><link>http://lostechies.com/derickbailey/2012/05/10/modeling-explicit-workflow-with-code-in-javascript-and-backbone-apps/#comment-525782634</link><description>&lt;p&gt;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 "big" methods much smaller and easy to read.&lt;/p&gt;

&lt;p&gt;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'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.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">kamranayub</dc:creator><pubDate>Thu, 10 May 2012 17:20:27 -0000</pubDate></item><item><title>Re: Composite Views: Tree Structures, Tables, And More</title><link>http://lostechies.com/derickbailey/?p=866#comment-525725174</link><description>&lt;p&gt;Well thought out; backbone.js doesn't consider relationships inside items.  This is great, that you have thought this thoroughly. Thank you Derek for your time.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Joshua Anderson</dc:creator><pubDate>Thu, 10 May 2012 16:08:08 -0000</pubDate></item><item><title>Re: Modeling Explicit Workflow With Code, In JavaScript And Backbone Apps</title><link>http://lostechies.com/derickbailey/2012/05/10/modeling-explicit-workflow-with-code-in-javascript-and-backbone-apps/#comment-525618022</link><description>&lt;p&gt;I really need to read Clean Code. I think I have it on my Kindle, but have never got around to it. :P&lt;/p&gt;

&lt;p&gt;And yeah, the asynchronous bit with the callbacks kind of drives me nuts some times. There'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 "clean". It's hard to find those balances.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Derick Bailey</dc:creator><pubDate>Thu, 10 May 2012 13:58:02 -0000</pubDate></item><item><title>Re: Modeling Explicit Workflow With Code, In JavaScript And Backbone Apps</title><link>http://lostechies.com/derickbailey/2012/05/10/modeling-explicit-workflow-with-code-in-javascript-and-backbone-apps/#comment-525603589</link><description>&lt;p&gt;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!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Tyronemichael</dc:creator><pubDate>Thu, 10 May 2012 13:38:56 -0000</pubDate></item><item><title>Re: Modeling Explicit Workflow With Code, In JavaScript And Backbone Apps</title><link>http://lostechies.com/derickbailey/2012/05/10/modeling-explicit-workflow-with-code-in-javascript-and-backbone-apps/#comment-525590460</link><description>&lt;p&gt;Great article as always, Derick!&lt;/p&gt;

&lt;p&gt;It's very similar in concept to "The Stepdown Rule", from a book I highly recommend: Clean Code by Robert C. Martin (the chapter on Functions, section on "One Level of Abstraction per Function, Reading Code from Top to Bottom")&lt;/p&gt;

&lt;p&gt;Except, of course, for the asynchronous part.&lt;/p&gt;

&lt;p&gt;Just playing around a little, one could imagine it written using node.js conventions (a callback as the final argument that takes an err object for error handling). The pseudo-return-value(s) of a closeable form/dialog would be provided to the callback (after the err object):&lt;/p&gt;

&lt;p&gt;getEmployeeDetail(function(err, employee) {&lt;br&gt;    selectManager(employee, function(err) {&lt;br&gt;        employee.save();&lt;br&gt;    });&lt;br&gt;});&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Peter Rust</dc:creator><pubDate>Thu, 10 May 2012 13:21:31 -0000</pubDate></item><item><title>Re: Modeling Explicit Workflow With Code, In JavaScript And Backbone Apps</title><link>http://lostechies.com/derickbailey/2012/05/10/modeling-explicit-workflow-with-code-in-javascript-and-backbone-apps/#comment-525589164</link><description>&lt;p&gt;Nice work!&lt;br&gt;Such articles help me and others to get new way of thinking and developing programms!Thanks alot!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Wwwboy</dc:creator><pubDate>Thu, 10 May 2012 13:19:50 -0000</pubDate></item><item><title>Re: Modeling Explicit Workflow With Code, In JavaScript And Backbone Apps</title><link>http://lostechies.com/derickbailey/2012/05/10/modeling-explicit-workflow-with-code-in-javascript-and-backbone-apps/#comment-525457691</link><description>&lt;p&gt;yeah, i've seen that a few times. i'm not a fan of configurable state machines like that. something about that pattern and style has always bothered me, and I invariably end up fighting the state machine framework instead of having it facilitate my workflow in a more controlled manner.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Derick Bailey</dc:creator><pubDate>Thu, 10 May 2012 10:35:18 -0000</pubDate></item><item><title>Re: Modeling Explicit Workflow With Code, In JavaScript And Backbone Apps</title><link>http://lostechies.com/derickbailey/2012/05/10/modeling-explicit-workflow-with-code-in-javascript-and-backbone-apps/#comment-525437997</link><description>&lt;p&gt;Interesting article.&lt;/p&gt;

&lt;p&gt;Have you come across this post: &lt;a href="http://freshbrewedcode.com/jimcowart/2012/03/12/machina-js-finite-state-machines-in-javascript/" rel="nofollow"&gt;http://freshbrewedcode.com/jim...&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Looks like there is a bit of crossover in what you are trying to achieve.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">David Madden</dc:creator><pubDate>Thu, 10 May 2012 10:07:41 -0000</pubDate></item><item><title>Re: Wrapping $.ajax In A Thin &amp;#8220;Command&amp;#8221; Framework For Backbone Apps</title><link>http://lostechies.com/derickbailey/2012/05/04/wrapping-ajax-in-a-thin-command-framework-for-backbone-apps/#comment-524776997</link><description>&lt;p&gt;Damned, it's great! Thanks for that.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Romain Tribes</dc:creator><pubDate>Wed, 09 May 2012 17:02:19 -0000</pubDate></item><item><title>Re: Zombies! RUN! (Managing Page Transitions In Backbone Apps)</title><link>http://lostechies.com/derickbailey/2011/09/15/zombies-run-managing-page-transitions-in-backbone-apps/#comment-524321422</link><description>&lt;p&gt;Everytime I search for Backbone .. I land on your page.. then the search ends..  Thank you very much .. Keep posting.. &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Amit Garg</dc:creator><pubDate>Wed, 09 May 2012 08:28:15 -0000</pubDate></item><item><title>Re: Backbone.js And JavaScript Garbage Collection</title><link>http://lostechies.com/derickbailey/2012/03/19/backbone-js-and-javascript-garbage-collection/#comment-523324094</link><description>&lt;p&gt;If this were expanded, do you think it could be of use?&lt;br&gt;&lt;a href="https://github.com/jstrimpel/emem" rel="nofollow"&gt;https://github.com/jstrimpel/e...&lt;/a&gt; &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jason</dc:creator><pubDate>Tue, 08 May 2012 17:33:08 -0000</pubDate></item><item><title>Re: Stop Using Backbone As If It Were A Stateless Web Server</title><link>http://lostechies.com/derickbailey/2011/08/03/stop-using-backbone-as-if-it-were-a-stateless-web-server/#comment-522971334</link><description>&lt;p&gt;Well quite a lot of words for one simple thing - use route for routing to items (views), not for actions. ;-)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Libor Nenadál</dc:creator><pubDate>Tue, 08 May 2012 11:35:06 -0000</pubDate></item><item><title>Re: Don&amp;#8217;t Do Role-Based Authorization Checks; Do Activity-Based Checks</title><link>http://lostechies.com/derickbailey/2011/05/24/dont-do-role-based-authorization-checks-do-activity-based-checks/#comment-521548420</link><description>&lt;p&gt;Thank you for the excellent article.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Warren Sentient</dc:creator><pubDate>Mon, 07 May 2012 08:58:52 -0000</pubDate></item><item><title>Re: Wrapping $.ajax In A Thin &amp;#8220;Command&amp;#8221; Framework For Backbone Apps</title><link>http://lostechies.com/derickbailey/2012/05/04/wrapping-ajax-in-a-thin-command-framework-for-backbone-apps/#comment-521109275</link><description>&lt;p&gt;yeah, someone else pointed that out to me on twitter as well. it looks exactly what i've done, only with far more features and stability :) definitely something i want to look in to when i have time.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Derick Bailey</dc:creator><pubDate>Sun, 06 May 2012 15:31:21 -0000</pubDate></item><item><title>Re: Wrapping $.ajax In A Thin &amp;#8220;Command&amp;#8221; Framework For Backbone Apps</title><link>http://lostechies.com/derickbailey/2012/05/04/wrapping-ajax-in-a-thin-command-framework-for-backbone-apps/#comment-521107062</link><description>&lt;p&gt;This is an interesting read. I also found &lt;a href="http://amplifyjs.com/api/request/" rel="nofollow"&gt;http://amplifyjs.com/api/reque...&lt;/a&gt; which seems to address a similar use case (and more feature AFAICS). What do you think about it ? &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Stof</dc:creator><pubDate>Sun, 06 May 2012 15:27:13 -0000</pubDate></item><item><title>Re: Wrapping $.ajax In A Thin &amp;#8220;Command&amp;#8221; Framework For Backbone Apps</title><link>http://lostechies.com/derickbailey/2012/05/04/wrapping-ajax-in-a-thin-command-framework-for-backbone-apps/#comment-519219620</link><description>&lt;p&gt;Very neat and clean solution. Thank you for sharing.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Dominik</dc:creator><pubDate>Fri, 04 May 2012 12:53:18 -0000</pubDate></item><item><title>Re: Binding A Backbone View To A Model, To Enable and Disable A Button</title><link>http://lostechies.com/derickbailey/2011/06/15/binding-a-backbone-view-to-a-model-to-enable-and-disable-a-button/#comment-518520979</link><description>&lt;p&gt;Thanks.. useful tutorial.&lt;br&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Neha</dc:creator><pubDate>Fri, 04 May 2012 02:14:59 -0000</pubDate></item></channel></rss>
