A Quick Note On Pub-Sub / Event Aggregators In WinJS/WinRT

By now you know that I’m a fan of pub-sub / event aggregators, whether it’s .NET / Winforms or Backbone or whatever. For the last 3 weeks working on this WinJS / WinRT app with the Microsoft P&P group, I’ve … Continue reading 

Posted in Design Patterns, Javascript, WinJS | 4 Comments

Partially Applied Functions In JavaScript

I’m finding myself doing more and more functional programming with JavaScript lately – especially in recent days with this WinJS project I’m working on, and the heavy use of promises that it encourages. This feels a little odd to me, … Continue reading 

Posted in Async, ECMAScript, Functional, Javascript, Underscore, WinJS | 8 Comments

Want To Build Win8/WinJS Apps? You Need To Understand Promises.

If you’re not following me on Twitter, you may not know about my current project work. I’m working with Christopher Bennage and the Microsoft Patterns & Practices group to build a Windows 8, WinJS, Metro-style app with HTML, CSS and … Continue reading 

Posted in Async, CommonJS, Javascript, WinJS | 4 Comments

I’m Wring A Book On Building Backbone Plugins

A few weeks ago I published a screencast on building Backbone plugins (paid). In this screencast, I walk and talk through the steps that I take to build, test, package and deploy some of the plugins and projects that I build … Continue reading 

Posted in Backbone, Books, Jasmine, WatchMeCode | 8 Comments

Passwords, Password Storage And Password Management

There’s no shortage of news about companies that are being hacked and having usernames and passwords stolen these days. The latest of which is Tuts+ Premium. Now I’m not one for blaming companies that get hacked. That happens. We do … Continue reading 

Posted in Security, Tools and Vendors | 15 Comments

Why Should I Use Backbone.Marionette Instead Of … ?

There’s a question on StackOverflow from someone that wants to know what the real differences are between the various Backbone-based application frameworks. While I can’t really answer the question in terms of what the differences are, I can provide more … Continue reading 

Posted in Analysis and Design, Backbone, Javascript, Marionette, Messaging, Open Source, Philosophy of Software, Tools and Vendors | 17 Comments

Anders Hejlsberg Is Right: You Cannot Maintain Large Programs In JavaScript

There’s a quote over on a Channel 9 video of Anders Hejlsberg: Erik Meijer: Are you saying you cannot write large programs in JavaScript? Anders Hejlsberg: No, you can write large programs in JavaScript. You just can’t maintain them. With … Continue reading 

Posted in AntiPatterns, Composite Apps, CQRS, Craftsmanship, Javascript, Philosophy of Software, Pragmatism, Principles and Patterns, Risk Management | 29 Comments

$(function(){…}) vs (function($){…})($) or DOMReady vs The Module Pattern

This was originally a StackOverflow question. I’m re-posting here because I think the question is fairly common, and I like the answer that I provided.  Why define anonymous function and pass it jQuery as the argument? This is the original … Continue reading 

Posted in Backbone, DOM, Javascript, JQuery, Principles and Patterns | 7 Comments

Backbone.Syphon: Serialize Form Inputs To JavaScript Objects

Working with form elements in a Backbone view can become very tedious very quickly. You will either end up writing a lot of repetitive code to read values from the form, or end up using a key-value-observer or data-binding solution … Continue reading 

Posted in Backbone, Backbone.Syphon, Javascript, JQuery, JSON | 21 Comments

Workflow In Backbone Apps: Triggering View Events From DOM Events

In my previous blog post, I talked about modeling an explicit workflow in JavaScript and Backbone application. The last code sample I showed had the implementation of the workflow object itself, but omitted all of the details of the views … Continue reading 

Posted in Backbone, Javascript, Workflow | 7 Comments