Javascript: Stop Fighting It
blog.blainebuxton.com
blog.blainebuxton.com
Never, ever add things to Object.prototype. It breaks enumeration over objects using the for...in operator, which in turn breaks lots of other libraries you might want to use later. Sure, this is due to a bug in the core JavaScript spec but it's one we all have to live with.
There are many compelling reasons to stop using such a badly-implemented and rather-demented language; but unfortunately there are no compelling alternatives.
If there are no alternatives, then those reasons start to look a lot less compelling.
http://code.google.com/webtoolkit/
The future is here, man.