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 

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

Posted in Backbone, Books, Community, Javascript, Marionette | 2 Comments

Screencasting Tip: Resize Your App To 720p (1280×720) In OSX

I record my screencasts in 720p resolution. Up until recently, I had been changing my monitor’s resolution to 1280×720 in order to do the recording. The problem with this is that I ended up having to edit out the system … Continue reading 

Posted in AppleScript, OSX, Screencast, WatchMeCode | 2 Comments

A WinJS SpecRunner: Automating Script Tag Insertion For Unit Tests

Writing unit tests with Mocha or Jasmine is generally pretty easy. Once you have a test runner set up, it’s not much different than any other JavaScript environment, really. But the trick to this is getting a test runner set … Continue reading 

Posted in Jasmine, Javascript, MochaJS, Productivity, Test Automation, Unit Testing, WinJS | 3 Comments

A Guest Appearance On Tekpub’s Knockout.js Series

Tekpub release their series on Knockout.js recently and I was fortunate enough to make a guest appearance! Now I know you’re thinking “why would Derick make an appearance in a Knockout series?!” But don’t worry – I’m not there to … Continue reading 

Posted in Code Review, Javascript, Knockout, Refactoring, Screencast | 1 Comment

Jasmine.Async: Making Asynchronous Testing With Jasmine Suck Less

I love Jasmine. It’s a great BDD-style testing framework for browser based JavaScript, and my preferred tool for doing that kind of work. But the asynchronous testing story in Jasmine is painful at best. Jasmine’s Async Is Painful Here’s a short example of … Continue reading 

Posted in Async, Jasmine, jasmine-async, Javascript, Unit Testing | 23 Comments

Asynchronous Unit Tests With Mocha, Promises, And WinJS

Before I get in to the guts of this post, you need to read Christopher Bennage’s post on how we have our Mocha test suite set up for our Win8 / WinJS project. It’s not the best setup, but it … Continue reading 

Posted in Async, ChaiJS, CommonJS, Javascript, MochaJS, Testing, WinJS | 11 Comments

It’s Not Always “All Or Nothing”

Have you ever been terrified to try something? Not because you don’t think you would enjoy it, but because it’s new, different, scary and potentially dangerous? Or because you see one potential path – the easy path – that it … Continue reading 

Posted in Business, Consulting, Management, Pragmatism | 4 Comments

Hands-on Backbone.js Screencasts

I’ve been talking about this for what seems like an eternity in Internet time: earlier this week my 4 part screencast series on Backbone.js was released through PragProg! It’s a hands-on, no-fluff walk through of all the major parts of … Continue reading 

Posted in Backbone, Javascript, Screencast, WatchMeCode | 4 Comments

WinJS Event Aggregators And Observable/Evented Objects

In a previous post, I showed a very brief intro to using an application level event aggregator in WinJS. At the end of that post, I hinted at an option I was looking in to for creating localized event aggregators … Continue reading 

Posted in Classy Inheritance, Design Patterns, Javascript, WinJS | 5 Comments