Archive for the ‘programming’ Category

Web Applications vs Web Sites

Tuesday, March 15th, 2011

When it boils down to it, the main differentiator of a web application and a web site is that an app has much more interaction and is process-focused rather than content-driven. Users come in to achieve a goal: They provide data to the application, they use the application to enhance that data, and then they expect data to come out. They interact with components of the application and expect them to do something that brings them closer to their goal.

– Christian Heilmann in Event-Driven Web Application Design

How to properly check if a variable is an array in JavaScript

Monday, October 4th, 2010

I just came across this post which details how to check if a variable is an array in JavaScript. The final word:

function isArray(o) {
    return Object.prototype.toString.call(o) === '[object Array]';
}

Scary stuff.