Need For A Better Javascript Prototype Library

Posted July 5, 2006 at 6:23 PM

Tags: Javascript / DHTML

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.

Post Comment  |  Ask Ben  |  Permalink  |  Other Searches  |  Print Page




Reader Comments

Feb 3, 2007 at 12:53 AM // reply »
164 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.


Feb 4, 2007 at 12:46 PM // reply »
6,371 Comments

I just starting playing with JQuery and it looks pretty awesome.


Post Comment  |  Ask Ben

Recent Blog Comments
Nov 7, 2009 at 5:53 PM
Ask Ben: Javascript String Replace Method
You can find here an advanced function that prepared with javascript replace function. This can make the first letters of words, sentences, lines and whatever you define automatically: http://www.m ... read »
Andrew Neely
Nov 7, 2009 at 4:56 PM
A Moment That Touched Me - The Fountainhead
Ben, Glad you enjoyed the podcast. Yeah, the Tank Riot guys can get really chatty during the episodes, but that's part of the charm of it for me. They've covered everything from Nichola Tesla to Cha ... read »
Nov 7, 2009 at 4:43 PM
Building A Fixed-Position Bottom Menu Bar (ala FaceBook)
Is it possible to make some more MenĂ¼`s ? ... read »
Jill
Nov 7, 2009 at 11:40 AM
How To Unformat Your Code (Like A Pro)
Derek, I think you might be right - sweet! Thanks for the link :) ... read »
Nov 7, 2009 at 11:25 AM
How To Unformat Your Code (Like A Pro)
I think it would be way easier to just use this http://www.logichammer.com/html-formatter/ He just released v3 and it rocks. ... read »
Jill
Nov 7, 2009 at 7:58 AM
How To Unformat Your Code (Like A Pro)
LMAO - this was pretty funny! I have to admit - I also love to reformat code so I can read it. My boss used to tell me to leave my OCD at home. Now I don't feel so bad after reading everyone else' ... read »
Nov 6, 2009 at 10:10 PM
How To Unformat Your Code (Like A Pro)
The timing of this post is just uncanny. I spent the last 15-20 minutes manually un-formatting my "Ben Nadel" style code within a CFC of mine. I was really digging the readability a few weeks ago, bu ... read »
Roe
Nov 6, 2009 at 5:11 PM
Passing Arrays By Reference In ColdFusion - SWEEET!
ArraySort also reorders the results of these java obj's ... read »