Permalink

9

Unit Testing Backbone.js Apps With QUnit And SinonJS

This article will be appearing in my forthcoming book on Backbone.js and continues the section on unit testing. We previously looked at Jasmine and will now look at QUnit and SinonJS.

QUnit is a powerful JavaScript test suite written by jQuery team member Jörn Zaefferer and used by many large open-source projects (such as jQuery and Backbone.js) to test their code. It’s both capable of testing standard JavaScript code in the browser as well as code on the server-side (where environments supported include Rhino, V8 and SpiderMonkey). This makes it a robust solution for a large number of use-cases.

Continue Reading →

Permalink

9

Learning JavaScript Design Patterns – An Updated Free Book For Developers

Over the past year or so I've been actively trying to encourage more developers to invest time in learning about the benefits of design patterns and how they can be applied to JavaScript. To help with this, I wrote a book on the topic which I released for free.  This week a new version of it is available to read online and includes lots of updates and a few new sections.

Continue Reading →

Permalink

4

Slides: Building Decoupled Large-Scale Applications With JavaScript And jQuery

Hey guys. Here are the slides for a talk I gave at jQuery Conf (Europe), where I presented a number of effective design patterns for scaling and decoupling your JavaScript (and jQuery) powered web apps. If you've watched my videos on scaling applications, you might be interested in some of the new demos that were included in this version.

Continue Reading →