News for hackers. Stuff that matters.
Re:Backbone patterns by 75c84fb8 on Thursday February 09, 2012 @03:03PM (#3572769)
I'd like to nominate private subviews as a pattern.

    (function(){
        var myPrivateView = Backbone.View.extend({...});
        app.views.Foo = Backbone.View.extend({
            /* use myPrivateView somewhere in here */
        });
    })();
Re:Backbone patterns by rstacruz on Thursday February 09, 2012 @03:47PM (#3572992)
Interesting. Any concrete examples of how it can be useful in a real-world project?
Re:Backbone patterns by 75c84fb8 on Thursday February 09, 2012 @11:39PM (#3574540)
It's a good way to break a view into logical sub-components, while still only exposing one overall view to the world. Really just a variation on data hiding and encapsulation.