We are trying to choose a JavaScript framework for our application.
It’s come down to either JQuery or Prototype.
The JQuery has a lot to offer, like animation and effects, also easy traversal and mutation of the DOM. Another strong point of JQuery are the vast number of plugins available.
But it seems that the prototype has a better inheritance model, in that, it allows the developer to easily extend classes.
My personal preference is JQuery, but I would really like to know, would JQuery help me in inheriting/extending classes ?
John Resig, the creator of jQuery, intentionally avoided the need for instantiation (via the
newkeyword) in jQuery itself. However, he has written a clever script to provide a simple class inheritance model in javascript generally, without relying on any other framework.I used to use prototype.js, but jQuery has practically become the standard javascript library these days. It is possible to use them together, but prototype.js would represent a lot of overhead if you’re just looking for an inheritance architecture. I’d suggest sticking with jQuery, and use John Resig’s Class script to implement inheritance where it makes sense for you.