Bloggposter merket som:
jasmine

Writing reusable Backbone.js components

In this blog post I show how functionality can easily be reused across Backbone.js models, collections and views in a very powerful way. This technique helps decouple code and make each component more focused on its primary task.

A view’s responsibility — a lesson on JavaScript and the DOM

Creating abstractions are at the core of writing great JavaScript. In this blog post I propose a way of creating view abstractions by giving a view ownership of an HTML element and everything inside it.

Integration testing Backbone.js

Throughout my last project we have had an interesting approach to testing our Backbone.js code. Instead of unit testing each and every bit of the application, we mock out Ajax requests and test that the application works end-to-end.

Getting started with JS and TDD

Introduction Are you working on unmaintainable JavaScript code? Are you afraid to make changes to your 5000+ lines long JS file? If so, you’ve probably not written tests or done TDD. Fear not! Read on, and we will show you how to get started with writing tests and setting up the needed tools. We will [...]