Ben Nadel
On User Experience (UX) Design, JavaScript, ColdFusion, Node.js, Life, and Love.
I am the chief technical officer at InVision App, Inc - a prototyping and collaboration platform for designers, built by designers. I also rock out in JavaScript and ColdFusion 24x7.
Meanwhile on Twitter
Loading latest tweet...
Ben Nadel at cf.Objective() 2009 (Minneapolis, MN) with: Kurt Wiersma

Need For A Better Javascript Prototype Library

By Ben Nadel on

If you have been programming in Javascript you have probably heard of the Prototype library. This library has some really neat stuff for crazy DHTML. My problem with it is that the name "Prototype" is a horrible choice. In Javascript, Prototype allows you to extend base objects (and user defined objects) with universal methods and properties. It creates prototype chains, which I don't understand fully, but it seems to me to relate to abstract methods in OOP.

What I want to do is create a Javascript prototype library which is a much more of a natural "prototype" notion. I want to have methods that extend built in objects such as the String and the Date. I think its gonna be wicked cool.



Reader Comments

I would recommend looking at Mootools (http://mootools.net) if you're not already familiar with it. It's my personal favorite JS library, followed by YUI (http://developer.yahoo.com/yui/). Both are some of the newest libraries on the block. YUI is probably the most respected and well-thought-out library out there. I personally prefer Mootools over it though, since I'm a fan of its syntax and greater emphasis on code brevity.

Reply to this Comment

Post A Comment

You — Get Out Of My Dreams, Get Into My Comments
Live in the Now
Oops!
Comment Etiquette: Please do not post spam. Please keep the comments on-topic. Please do not post unrelated questions or large chunks of code. And, above all, please be nice to each other - we're trying to have a good conversation here.