Mixology is a Ruby library for what I call shape-shifting objects. shape·shiftingn. the act of changing the shape of an object's inheritance hierarchy during runtime.It turns out that...
more
JSON is nice, but if you use it extensively, you go against the OO style of object modeling, which says that behaviors should be attached to objects themselves. Even if you are not an OO bigot, the...
more
One of Toby's favorite pastimes is to take concepts from one language and realize it in another. In this episode: Toby implements Javascript-style prototype inheritence in Python.One thing that is...
more
ActionScript 3 has a Javascript lineage. It was essentially a fork of Ecmascript. Plus, the Adobe team has worked hard on making the language a proper superset of the Ecmascript specification. This...
more
I realized when I was trying to explain the prototype chain to my wife the other day that I didn't get it completely. So I went back to the drawing board and this is the example that I came up...
more
Since Chrome is so great, I wanted to use it for all my browser needs. But the apps I've been working on myself have not been targeted for WebKit - the rendering engine used by chrome, and also used...
more
I had a new toy project and started out with my trusty sidekick: prototype.js but a bit of the way in i decide to try my hand at jQuery instead, since I've already read a lot about jQuery and really...
more
Wow, FF3 broke my app!I had a line like this(sorry this code uses prototype.js, but it's not specific to it):myDiv.setStyle({ position: 'absolute', top:...
more
Element.extend is an important method is the prototype framework. It adds all the helper/mixin methods to a dom element, like this:Element.extend(myElem);If for some reason you have to do this...
more