Category Archives: Marionette

Make your Backbone applications dance with a composite application architecture!

Backbone.EventBinder: Better Event Management For Your Backbone Apps

One of my most popular blog posts in recent history is my Zombies! RUN! post where I outline the possibility and problem of memory leaks and “zombie” views and other objects in Backbone applications. There’s a good chance, in fact, … Continue reading 

Also posted in Backbone, Backbone.EventBinder, Javascript | 8 Comments

Backbone Fundamentals, Intro To Marionette, TodoMVC, And More

I’m very happy to announce that this week’s addition to Addy Osmani’s Backbone Fundamentals book is a chapter on Marionette! I was lucky enough to be able to contribute a large portion of the chapter to the book, including a … Continue reading 

Also posted in Backbone, Books, Community, Javascript | 2 Comments

Why Should I Use Backbone.Marionette Instead Of … ?

There’s a question on StackOverflow from someone that wants to know what the real differences are between the various Backbone-based application frameworks. While I can’t really answer the question in terms of what the differences are, I can provide more … Continue reading 

Also posted in Analysis and Design, Backbone, Javascript, Messaging, Open Source, Philosophy of Software, Tools and Vendors | 19 Comments

Help Me Improve The Marionette Wiki

Documentation is difficult to write, and even more difficult to write well so that it covers all of the nuances and details that the people building the actual project tend to assume and forget. My Marionette project is no different. … Continue reading 

Also posted in Community | 6 Comments

View Helpers For Underscore Templates

Underscore’s template engine lets you run any arbitrary JavaScript code that you want, within a template. You could write an entire JavaScript application within an underscore template if you want. But this is a really bad idea. Templates should be … Continue reading 

Also posted in Backbone, Javascript, Underscore | 20 Comments

Decoupling Backbone Apps From WebSockets

I’ve been doing a lot of work with web sockets lately, in my Backbone applications. And I’ve fallen in to a pattern that I really like, where my Backbone application doesn’t actually know anything about web sockets. All it knows … Continue reading 

Also posted in Backbone, Javascript, Pusher, SignalR, Socket.IO, Web Sockets | 12 Comments

Managing A Modal Dialog With Backbone And Marionette

My current client project is using Twitter Bootstrap, and I have to say I’m loving it. It provides a simple way to get started with common layout and design elements, and includes a handful of UI widgets and features that … Continue reading 

Also posted in Backbone, DOM, Javascript, JQuery, Twitter Bootstrap | 36 Comments

JavaScript Performance: Pre-Compiling And Caching HTML Templates

If you’re using HTML templates with a JavaScript application, you need to be caching the template’s raw text and/or pre-compiled version of the template. All of this spawned from a fun thread of discussion on a StackOverflow question. DOM Selection … Continue reading 

Also posted in Backbone, DOM, Javascript, JQuery, Performance | 7 Comments

Composite Views: Tree Structures, Tables, And More

One of the more recent features that I added to my Backbone.Marionette framework is the CompositeView. It’s actually been in the code for a while now, but in a recent version I extracted it out of the CollectionView and in … Continue reading 

Also posted in Backbone, Composite Apps, Design Patterns, Javascript, JQuery, JSFiddle | 33 Comments

Revisiting The Backbone Event Aggregator: Lessons Learned

It’s been a while since I originally talked about using an event aggregator in my Backbone applications. Since then, I’ve encapsulated the “vent” object in my Backbone.Marionette application and I’ve also realized that a lot of what I wrote originally … Continue reading 

Also posted in Backbone, Composite Apps, Javascript, Messaging | 22 Comments