My largest reason for preferring Protoype though is that it gives you
the tools you need to write your own javascript classes and extend the
DOM simply and easily without the hassle web browsers.
Nich
"My largest reason for preferring Protoype though is that it gives you the tools you need to write your own javascript classes and extend the DOM simply and easily without the hassle web browsers"
Jan Hansen wrote:
> [...]
> Some argue that
> prototype is better when it comes to "dealing with things not directly
> related to the DOM" - but I cant find any "hard evidence" helping me
> decide whether to use prototype or jquery. There are, however lots of
> "soft" arguments that people throw at me to convince me to switch to jQuery:
>
[...]
> 2) Better website
Personally I think more important is documentation, and I find
prototype's docs more useful (if only it contained also native methods
of extended objects, it would be owsome). Anyway, it's personal and
not objective.
> 3) More plugins
I think it's rather that all the plugins for jQuery are in one place,
while many prototype plugins are spread around the web (not all of
them are submitted to Scripteka.com).
> 4) "Supported by microsoft" (they will now distribute an
> intellisense-enabled version of jQuery - but not add a single line of 674
> code, right?)
Right now that is true, but Prototype developers work on PDoc inline
documentation system, which will allow for generation of any other
format. Then it will be easy to generate proper files to provide
"support for microsoft intellisense" (or any other web development
environment if it support external sources of documentation).
> - as a consequence of 4):
> 5) "This will be the future direction as prototype offers no noteable
> extra functionality that you cant do with jQuery"
> - as a consequence of 4) and 5)
Enumerable mixin. I can't find anything like it in jQuery, and I use
it very often in our applications (not a public website, but an
intranet CRM and similar aplications). If you write classes
representing your data, than it's very very useful. Not to mention
what help it is with an array.
What notable extra functionality offers jQuery over Prototype then? I
know little of jQuery, but would like to know what we can/should
improve ;)
--
Regards,
SWilk
Hi Nich,
Thanks for your answer! Could you elaborate a bit on the section:Isn't that possible with jQuery? (reveals my level of knowledge of jQuery, doesn't it?) A quick example ?
"My largest reason for preferring Protoype though is that it gives you the tools you need to write your own javascript classes and extend the DOM simply and easily without the hassle web browsers"
/Jan