Category Archives: Backbone

EmberJS: Initial Impressions (Compared To Backbone)

It’s been a little less than a year since I dove heard-first in to Backbone. It seems there’s been a tremendous amount of movement on the JS-MV* front in that time, and one of the up and coming contenders for … Continue reading 

Also posted in Ember, Handlebars, Javascript, Model-View-Controller, Model-View-Presenter, Rails, Ruby, Sinatra | 9 Comments

Using jQuery, Plugins and UI Controls With Backbone

Most Backbone applications either use jQuery or Zepto as their DOM manipulation of choice. I tend to use jQuery as it’s supported across more browsers and has more features – though it is a little heavier in terms of download … Continue reading 

Also posted in Backbone.Marionette, DOM, HTML5, Javascript, JQuery, KendoUI, Telerik, Tools and Vendors | 3 Comments

Asynchronously Load HTML Templates For Backbone Views

As JavaScript applications become larger and larger, we have to think about the download size, memory usage and other performance constraints for our end users. There are a number of aspects to consider, one of which is how to deliver … Continue reading 

Also posted in Async, Backbone.Marionette, Javascript, JQuery, Principles and Patterns, User Experience | 13 Comments

Rewriting My ‘Guaranteed Callbacks’ Code With jQuery Deferred

In a previous post, I showed some code that I wrote to guarantee the execution of a callback method after a Backbone collection was loaded. Even if you added the callback after the collection had been loaded, it would run. Shortly … Continue reading 

Also posted in Async, Backbone.Marionette, Javascript, JQuery | 3 Comments

3 Stages Of A Backbone Application’s Startup

Most Backbone application examples that you find on the web are very small and very simple. They tend to use a very simple idea of an application “init” method to start up a router and have the router kick off … Continue reading 

Also posted in Backbone.Marionette, Javascript, Semantics | 7 Comments

Get A Model From A Backbone Collection Without Knowing If The Collection Is Loaded

In working with a client recently, we ran in to a rather sticky situation. We were setting up a route to “persons/:id”, and as you would expect, we wanted to load the person in question and display the details of … Continue reading 

Also posted in Async, Backbone.Marionette, Javascript | 1 Comment

JavaScript File & Folder Structures: Just Pick One

Rails wants you to put specific files in specific folder structures, based on the object type that will be in the file. Java demands that files in a folder structure are namespaced by that folder structure. VisualStudio also makes it … Continue reading 

Also posted in AntiPatterns, Javascript, Model-View-Controller | 3 Comments

Don’t Rely Solely On jQuery’s “keyup” Event

A few days ago I pushed some changes to the form validation up to my WatchMeCode website. I was trying to fix a scenario where a browser cache would have some of the data in the purchase form already filled … Continue reading 

Also posted in Javascript, JQuery, Test Automation, Validation | 6 Comments

Modularity And Security In Composite JavaScript Apps

In one of my current apps for a client, I have an activity based security system that determines what the user is allowed to do. The trick to this system is that all of the authorization checks happen on the … Continue reading 

Also posted in Backbone.Marionette, Composite Apps, Javascript, Security | 9 Comments

Reducing Backbone Routers To Nothing More Than Configuration

I received an email from someone who was looking through my BBCloneMail and Backbone.Marionette source code. One of the comments they made talked about how my router callback methods were nothing more than pass-throughs, calling out to another object. (I … Continue reading 

Also posted in Backbone.Marionette, Javascript | 2 Comments