Monthly Archives: February 2012

EmberJS Documentation

So, it turns out EmberJS has better documentation than I thought: http://ember-docs.herokuapp.com/ It’s still not “complete” but it’s a giant leap forward compared to what little documentation I was able to find on EmberJS.com and the Github project. The real problem, … Continue reading 

Posted in Documentation, Ember | Leave a comment

Recent Interviews On Podcasts

In case you’ve missed my tweets about this, I’ve done a few interviews on some podcasts recently. Herding Code: BackboneJS Herding Code Episode 133 From the site: In this episode, the guys talk with Derick Bailey (consultant and founder of … Continue reading 

Posted in Javascript, Podcast | Leave a comment

Handling DOM Events With EmberJS Views And Controllers

Hot on the heels of picking up Ember and starting to learn it, I think I’ve actually learned something useful! I certainly hope I have, at least. Otherwise, I’m going to be in trouble soon. In my EmberCloneMail app, I … Continue reading 

Posted in DOM, Ember, Javascript, JQuery, Model-View-Controller, Model-View-Presenter | 8 Comments

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 

Posted in Backbone, Ember, Handlebars, Javascript, Model-View-Controller, Model-View-Presenter, Rails, Ruby, Sinatra | 20 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 

Posted in Backbone, DOM, HTML5, Javascript, JQuery, KendoUI, Marionette, Telerik, Tools and Vendors | 5 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 

Posted in Async, Backbone, Javascript, JQuery, Marionette, Principles and Patterns, User Experience | 18 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 

Posted in Async, Backbone, Javascript, JQuery, Marionette | 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 

Posted in Backbone, Javascript, Marionette, 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 

Posted in Async, Backbone, Javascript, Marionette | 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 

Posted in AntiPatterns, Backbone, Javascript, Model-View-Controller | 3 Comments