Category Archives: Backbone

Building An Email List Component With BackboneJS

In my post about re-launching myself in to the independent life, I talked a little bit about restarting my effort to complete my Building Backbone Plugins eBook. I’ve already started down the path, reviewing existing chapters and beginning to fill … Continue reading 

Also posted in Books, E-Books, HTML5, Javascript, Marionette, Model-View-Controller, Model-View-Presenter, Modules | 5 Comments

When Do You Set The URL, In A BackboneJS App?

Oscar Godson recently asked a question about when to set the URL in a Single Page App (Backbone, specifically): I have a sidebar that pops in with form. It has a URL for it since it’s so commonly used. Going … Continue reading 

Also posted in Design Patterns, Javascript, Marionette, Principles and Patterns | 3 Comments

JavaScript’s “super” Pattern

Most other languages make it easy to call the “super” function when you override method – to call the original method that you are overriding. JavaScript, unfortunately, doesn’t have a “super” or “base” or anything like that at this point.There … Continue reading 

Also posted in Javascript, Principles and Patterns, Prototypal Inheritance | 8 Comments

Prototypes, Constructor Functions And Taxidermy

When overriding the base `Backbone.View` to create your own view types from the base views, there are some issues that you may run in to with inheritance. The inheritance of constructor functions can be broken in strange ways, and code … Continue reading 

Also posted in AntiPatterns, Books, E-Books, Javascript, Prototypal Inheritance | 8 Comments

Prosthetics And Orthotics: Building Backbone Plugins

A long time ago, in a galaxy far, far away…  It was almost a year ago that I announced a book on building Backbone.js plugins. Since then… nothing. Well I finally got tired of sitting on it and over the … Continue reading 

Also posted in Books, Marionette, Principles and Patterns | 7 Comments

MarionetteJS v1.0

Hot on the heels of the Backbone v1.0 release, I present MarionetteJS v1.0! I quietly released it over the weekend, and I’m glad I did. I already had a bug report and have released v1.0.1 to fix it. :D The … Continue reading 

Also posted in Javascript, Marionette, Open Source | 14 Comments

Event Aggregator And/Or/vs Mediator: A Tale Of Two Patterns

Design patterns often differ only in semantics and intent. That is, the language used to describe the pattern is what sets it apart, more than an implementation of that specific pattern. It often comes down to squares vs rectangles vs … Continue reading 

Also posted in AntiPatterns, Design Patterns, Javascript, JQuery, Principles and Patterns, Workflow | 20 Comments

Method Rewriting: Running With A Lit Stick Of Dynamite

I had a problem I wanted to solve. I thought to myself, “I know! I’ll use function rewriting!” and it was good… I solved the problem. But I also introduced some other problems regarding method references and event handlers.  Method … Continue reading 

Also posted in AntiPatterns, Javascript, Principles and Patterns | 7 Comments

MarionetteJS Screencasts And Videos

There’s been a lot of movement with MarionetteJS and screencasts in the last few months – enough that I decided to add a new “videos” section to the website this weekend. It’s a short list right now, but I expect … Continue reading 

Also posted in Community, Javascript, Marionette, Screencast | 3 Comments

Managing Events As Relationships, Not Just References

In my Scaling Backbone Apps With Marionette talk, I have some slides that deal with JavaScript zombies in Backbone apps. This isn’t a new subject by any means. It is one that I talk about a lot, and spend a … Continue reading 

Also posted in Analysis and Design, Javascript, Principles and Patterns | 15 Comments