Category Archives: Model-View-Controller

Playing With Laravel 4 (the PHP MVC framework) And Telerik UI

It’s been a rough week, honestly. I’ve had to rebuild my development environment on my Mac twice because of compatibility issues with Homebrew an XCode versions, I blew up my PHP install twice, set up Vagrant with a VM to do things … Continue reading 

Also posted in Kendo, Laravel, PHP, Telerik | 8 Comments

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 Backbone, Books, E-Books, HTML5, Javascript, Marionette, Model-View-Presenter, Modules | 5 Comments

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 

Also posted in DOM, Ember, Javascript, JQuery, Model-View-Presenter | 10 Comments

EmberJS: Initial Impressions (Compared To Backbone)

Hey! This article references a pre-release version of Ember.js. Now that Ember.js has reached a 1.0 API the code samples below are no longer correct and the expressed opinions may no longer be accurate. Just keep that in mind when … Continue reading 

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

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, Backbone, Javascript | 8 Comments

Backbone.js Is Not An MVC Framework

I’ve seen this question / statement / argument more than a few dozen times. I don’t particularly care whether or not people try to understand Backbone in terms of MVC frameworks, because that’s how we learn. We adapt new ideas … Continue reading 

Also posted in Backbone, Design Patterns, Javascript, Model-View-Presenter | 32 Comments

Zombies! RUN! (Managing Page Transitions In Backbone Apps)

One of the common issues or questions I see for Backbone.js goes something like this: “Whenever I hit the same route more than once, I end up getting seeing this call being made multiple times. It seems to accumulate another … Continue reading 

Also posted in Backbone, Javascript | 86 Comments

Test-Driving Backbone Views With JQuery Templates, The Jasmine Gem, and Jasmine-JQuery

In my current production rails app, I use Cucumber to test my backbone code as an integration test – to make sure that the entire system is playing nice. Over the weekend, I decided to dive a little deeper into my … Continue reading 

Also posted in Backbone, JQuery, Ruby, Unit Testing | 8 Comments

Don’t Execute A Backbone.js Route Handler From Your Code

I was working on a sample Backbone.js application and I ran into a scenario that seemed like it should have been simple on the surface, but was causing me a tremendous amount of headache. Here’s the basic functionality that I … Continue reading 

Also posted in Analysis and Design, AntiPatterns, Backbone, Javascript, Principles and Patterns | 40 Comments

Testing Out Embedding Of JSFiddle

This is mostly just a test to see if I can get a JSFiddle embedded into my blog post. The fiddle is a small backbone app that I’ve been playing with, to try out some different architectural ideas. It’s nothing … Continue reading 

Also posted in Backbone, Javascript, JQuery, User Experience | 10 Comments