Category Archives: JavaScript

Moving Forward: KendoUI

Just over 2 years ago, I left the corporate life for the independent life. At that time I didn’t have many opportunities for work in my area and moving in to independent consulting was basically dropped in my lap. I … Continue reading 

| 8 Comments

JavaScript Unit Tests: Jasmine vs Mocha

Someone recently asked me whether I prefer Jasmine or Mocha for unit testing JavaScript. My answer is: Jasmine and Mocha are both great. I use both, depending on the project and team. There’s a great community around both, and you’ll … Continue reading 

| 6 Comments

Abstraction: The Rule Of Three

I often hear people say something like “if you need it once, build it. If you need it twice, abstract it.” People often say then in the context of the “DRY” – or Don’t Repeat Yourself – principle. In theory … Continue reading 

| 13 Comments

JavaScript Mixins: Beyond Simple Object Extension

Mixins are generally easy in JavaScript, though they are semantically different than what Ruby calls a Mixin which are facilitated through inheritance behind the scenes. If you need a good place to start to understand how to build mixins with … Continue reading 

| 8 Comments

Extending Objects in Underscore

Underscore is a very nice library, it’s what Backbone JS is built on. What I’ve come to like about it is its ability to provide very helpful functions that let you more effectively work with sets of data. Below is … Continue reading 

Also posted in AutoMapper | 8 Comments

Extending Objects in Dojo

Dojo works a bit differently than we saw with jQuery and ExtJS. They have the notion of extend as well as mixin. These both behave differently, not only from each other, but from the previous jQuery.extend and Ext.apply. These methods … Continue reading 

Also posted in ASP.NET | 4 Comments

Extending Objects in Ext JS

Last time we explored JavaScript object extension we dove into the most popular JavaScript library in the known universe, jQuery. This time around we’ll be looking at Ext JS, a framework I’ve been using quite a bit lately. Ext JS … Continue reading 

Also posted in Tools | 26 Comments

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 

| 8 Comments

Extending Objects in jQuery

Welcome to my journey of  extending objects in JavaScript frameworks; let’s explore jQuery! Extending an object in jQuery is simple, there are just a few rules you need to understand. Extension works from left to right and you’re allowed to … Continue reading 

Also posted in C# | 5 Comments

Extending Objects with JavaScript

I have been a fan of JavaScript for quite some time, but mostly as an outsider looking in. I feel like I understand many of the concepts and can be fairly dangerous, but recently I have made it a point … Continue reading 

Also posted in Refactoring | 1 Comment