Archive for the ‘instanceof’ Category

Clojure event sourcing

Sunday, February 22nd, 2009

Event sourcing: Event Sourcing ensures that all changes to application state are stored as a sequence of events. Not just can we query these events, we can also use the event log to reconstruct past states, and as a foundation to automatically adjust the state to cope with retroactive changes. I recently ...

Jeene: An automatic partial evaluator for JavaScript

Sunday, September 14th, 2008

The purpose of this posting is to show that is is possible to create an online partial evaluator for JavaScript, written also in JavaScript. As far as I know, this has been not been done before. This post is the first in a series describing the inner workings of Jeene. A ...

JavaScript parasitic inheritance, power constructors and instanceof.

Thursday, February 21st, 2008

Abstract. This posting shows how one can make Crockford's power constructor functions play nicely with the JavaScript keyword 'instanceof.' [update: March 18, 2008. I asked Crockford what he thinks about this pattern, and he actually discourages the use of 'instanceof' -- instead, he prefers to "... rely instead on good design ...