C
Chad Burggraf
Hi all,
I'm brand new to this newsgroup. I've been reading the FAQ's and some
other documentation submitted by regulars of the group (such as
"Javascript Best Practices" at
http://www.javascripttoolbox.com/bestpractices/#prototype) and am
discovering that there is general distaste for prototype.js.
In my first post to this group I recommended a fix that happened to use
some functions from the prototype.js library. I may now be regretting
that post, however I would like to understand people's discontent first.
The main issues people have seem to be with the lack of author-provided
documentation and the extension of Object.prototype.
First, I've found the source to be very readable. The wiki has provided
answers to anything else I've needed. It'd maybe be nice to have some
more formal documentation, but is that a reason not to use it?
Second, the concept of extending any object's prototype is one of the
main beauties of the language! And I'm sorry, but adding two functions
to Object (and hence everything derived from Object) doesn't seem a very
big deal to me.
I actually don't feel defensive about prototype.js or any library or way
of doing something. I'm mostly just curious about this impression that
I've gotten. Please don't let me start a war, simple insight into your
reasoning would suffice.
Cheers
Chad
I'm brand new to this newsgroup. I've been reading the FAQ's and some
other documentation submitted by regulars of the group (such as
"Javascript Best Practices" at
http://www.javascripttoolbox.com/bestpractices/#prototype) and am
discovering that there is general distaste for prototype.js.
In my first post to this group I recommended a fix that happened to use
some functions from the prototype.js library. I may now be regretting
that post, however I would like to understand people's discontent first.
The main issues people have seem to be with the lack of author-provided
documentation and the extension of Object.prototype.
First, I've found the source to be very readable. The wiki has provided
answers to anything else I've needed. It'd maybe be nice to have some
more formal documentation, but is that a reason not to use it?
Second, the concept of extending any object's prototype is one of the
main beauties of the language! And I'm sorry, but adding two functions
to Object (and hence everything derived from Object) doesn't seem a very
big deal to me.
I actually don't feel defensive about prototype.js or any library or way
of doing something. I'm mostly just curious about this impression that
I've gotten. Please don't let me start a war, simple insight into your
reasoning would suffice.
Cheers
Chad