473,756 Members | 6,106 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Prototype - Good/Bad/Why?

Guys, I see a fair bit of negativity around re subject package. Can
someone share your views, either way?

Thanks,

AS
Feb 15 '08
56 3013
Peter Michaux said the following on 2/17/2008 1:57 AM:
On Feb 16, 10:44 pm, FAQEditor <clj...@comcast .netwrote:
>Peter Michaux said the following on 2/16/2008 4:47 PM:

<snip>
>>Randy, what do you say? Is a FAQ entry acceptable?
Fine by me. See my other reply. Somebody writes a Prototype entry and
the group wants it in the FAQ, I will add it :)

How about just a few links to some of these long Prototype threads
rather than trying to get an agreement on an actual critic?
Adding an entry isn't a big deal. It just a few lines pasted into a
file. The rest is automated. As for whether it should be in there or
not, let me see if I can find the thread where it was talked about last
time.

<FAQENTRY>
What are some of the problems with general purpose javascript libraries?

The consensus of regular posters in comp.lang.javas cript hold the view
that most, if not all, general purpose libraries are of a sufficient
lack of quality as to make them useless in a cross-browser environment.
These are a few of the discussions that have taken place in the past
about libraries available for general public use:

Prototype.js:
<URL here>
<URL here>
<URL here>

YUI:
<URL here>
<URL here>

Mootools:
<URL here>
<URL here>

Etc..

That is a start.

I haven't been following your RFC threads lately, anything FAQ related
in them?

--
Randy
comp.lang.javas cript FAQ - http://jibbering.com/faq/index.html
FAQ Notes: http://www.jibbering.com/faq/faq_notes/faq_notes.html
ECMAScript Language Specification via FAQ2.6
Feb 17 '08 #21
On Feb 16, 11:21 pm, FAQEditor <clj...@comcast .netwrote:
Peter Michaux said the following on 2/17/2008 1:57 AM:
On Feb 16, 10:44 pm, FAQEditor <clj...@comcast .netwrote:
Peter Michaux said the following on 2/16/2008 4:47 PM:
<snip>
>Randy, what do you say? Is a FAQ entry acceptable?
Fine by me. See my other reply. Somebody writes a Prototype entry and
the group wants it in the FAQ, I will add it :)
How about just a few links to some of these long Prototype threads
rather than trying to get an agreement on an actual critic?

Adding an entry isn't a big deal. It just a few lines pasted into a
file. The rest is automated. As for whether it should be in there or
not, let me see if I can find the thread where it was talked about last
time.

<FAQENTRY>

What are some of the problems with general purpose javascript libraries?

The consensus of regular posters in comp.lang.javas cript hold the view
that most, if not all, general purpose libraries are of a sufficient
"mainstream , downloadable general purpose"?
lack of quality as to make them useless in a cross-browser environment.
These are a few of the discussions that have taken place in the past
about libraries available for general public use:

Prototype.js:
<URL here>
<URL here>
<URL here>

YUI:
<URL here>
<URL here>

Mootools:
<URL here>
<URL here>

Etc..

That is a start.
I think it is close enough to the group regular's general feeling. I
don't particularly agree with the social skills displayed in the
threads to be linked but they sure do express the sentiment of the
most vocal regulars.

I haven't been following your RFC threads lately, anything FAQ related
in them?
I don't think so. Some interesting minutia about cross-browser testing
host objects and the ECMAScript spec. I know you really like that
stuff.

Peter
Feb 17 '08 #22
FAQEditor said the following on 2/17/2008 2:21 AM:
As for whether it should be in there or not, let me see
if I can find the thread where it was talked about last
time.
Searching for prototype.js and FAQENTRY doesn't find the thread I am
remembering. I will try finding it tomorrow if nobody else does first.
The general idea of the thread I am hunting was that if you listed
Prototype, then you would need to list the rest and it goes to the issue
that Richard was talking about where it could become a never ending list
as more libraries come out.

What might be better, to keep the FAQ entry size down, is to simply link
to a Notes page where it can list different libraries and the
discussions here about them. That way, as libraries come out or new
threads are started about them, the FAQ doesn't grow every time a
library is discussed.
--
Randy
comp.lang.javas cript FAQ - http://jibbering.com/faq/index.html
FAQ Notes: http://www.jibbering.com/faq/faq_notes/faq_notes.html
ECMAScript Language Specification via FAQ2.6
Feb 17 '08 #23
Peter Michaux said the following on 2/17/2008 2:30 AM:
On Feb 16, 11:21 pm, FAQEditor <clj...@comcast .netwrote:
<snip>
>What are some of the problems with general purpose javascript libraries?

The consensus of regular posters in comp.lang.javas cript hold the view
that most, if not all, general purpose libraries are of a sufficient

"mainstream , downloadable general purpose"?
I think that implies, or might, that non-mainstream libraries don't
suffer many of the problems that mainstream libraries do.

<snip>
>
I think it is close enough to the group regular's general feeling. I
don't particularly agree with the social skills displayed in the
threads to be linked but they sure do express the sentiment of the
most vocal regulars.
You going to volunteer to hunt and weed out the threads for links?
>I haven't been following your RFC threads lately, anything FAQ related
in them?

I don't think so. Some interesting minutia about cross-browser testing
host objects and the ECMAScript spec. I know you really like that
stuff.
You know me too well :)

I think that Matt's libraries should be included as well if there are
any threads where they are discussed. From what I have seen though, when
Matt finds out about a problem with one of his, he tries to correct it.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javas cript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Feb 17 '08 #24
On Feb 16, 11:35 pm, Randy Webb <HikksNotAtH... @aol.comwrote:
Peter Michaux said the following on 2/17/2008 2:30 AM:
On Feb 16, 11:21 pm, FAQEditor <clj...@comcast .netwrote:

<snip>
What are some of the problems with general purpose javascript libraries?
The consensus of regular posters in comp.lang.javas cript hold the view
that most, if not all, general purpose libraries are of a sufficient
"mainstream , downloadable general purpose"?

I think that implies, or might, that non-mainstream libraries don't
suffer many of the problems that mainstream libraries do.
Well, if it isn't right, we can be sure Dr Stockton will mention it to
you soon and frequently.

I think it is close enough to the group regular's general feeling. I
don't particularly agree with the social skills displayed in the
threads to be linked but they sure do express the sentiment of the
most vocal regulars.

You going to volunteer to hunt and weed out the threads for links?
I can find some.

I haven't been following your RFC threads lately, anything FAQ related
in them?
I don't think so. Some interesting minutia about cross-browser testing
host objects and the ECMAScript spec. I know you really like that
stuff.

You know me too well :)

I think that Matt's libraries should be included as well if there are
any threads where they are discussed. From what I have seen though, when
Matt finds out about a problem with one of his, he tries to correct it.
Matt did mention in one of the recent, colossal jQuery threads that he
uses jQuery at work and doesn't have much time for his own code
anymore. I don't know if he is keeping up to date.

I don't think Matt's library should be mentioned because it is not a
frequently asked question. Also there is not a consensus that Matt's
library is bad (actually it is probably the contrary) so I wouldn't
want to imply anything about his code.

Peter
Feb 17 '08 #25
On Feb 16, 11:41 pm, Peter Michaux <petermich...@g mail.comwrote:
On Feb 16, 11:35 pm, Randy Webb <HikksNotAtH... @aol.comwrote:
Peter Michaux said the following on 2/17/2008 2:30 AM:
On Feb 16, 11:21 pm, FAQEditor <clj...@comcast .netwrote:
<snip>
>What are some of the problems with general purpose javascript libraries?
>The consensus of regular posters in comp.lang.javas cript hold the view
>that most, if not all, general purpose libraries are of a sufficient
"mainstream , downloadable general purpose"?
I think that implies, or might, that non-mainstream libraries don't
suffer many of the problems that mainstream libraries do.

Well, if it isn't right, we can be sure Dr Stockton will mention it to
you soon and frequently.
I think it is close enough to the group regular's general feeling. I
don't particularly agree with the social skills displayed in the
threads to be linked but they sure do express the sentiment of the
most vocal regulars.
You going to volunteer to hunt and weed out the threads for links?

I can find some.
I didn't say I was going to spend my life compiling them all.

These are ones I remember and all involve regulars and the general
opinions in the group. In some of the threads more than one library is
mentioned but I've grouped by the library that took the hardest hit.

Prototype
http://groups.google.com/group/comp....1f03af63cc81c2
http://groups.google.com/group/comp....72e63631688fc4

jQuery
http://groups.google.com/group/comp....5949d1bcce6e6a

YUI
http://groups.google.com/group/comp....fce445673d7135
http://groups.google.com/group/comp....c2a1b93d566b74

Peter
Feb 17 '08 #26
On Feb 16, 11:41 pm, Peter Michaux <petermich...@g mail.comwrote:
On Feb 16, 11:35 pm, Randy Webb <HikksNotAtH... @aol.comwrote:
Peter Michaux said the following on 2/17/2008 2:30 AM:
On Feb 16, 11:21 pm, FAQEditor <clj...@comcast .netwrote:
<snip>
>What are some of the problems with general purpose javascript libraries?
>The consensus of regular posters in comp.lang.javas cript hold the view
>that most, if not all, general purpose libraries are of a sufficient
"mainstream , downloadable general purpose"?
I think that implies, or might, that non-mainstream libraries don't
suffer many of the problems that mainstream libraries do.

Well, if it isn't right, we can be sure Dr Stockton will mention it to
you soon and frequently.
I think it is close enough to the group regular's general feeling. I
don't particularly agree with the social skills displayed in the
threads to be linked but they sure do express the sentiment of the
most vocal regulars.
You going to volunteer to hunt and weed out the threads for links?

I can find some.
>I haven't been following your RFC threads lately, anything FAQ related
>in them?
I don't think so. Some interesting minutia about cross-browser testing
host objects and the ECMAScript spec. I know you really like that
stuff.
You know me too well :)
I think that Matt's libraries should be included as well if there are
any threads where they are discussed. From what I have seen though, when
Matt finds out about a problem with one of his, he tries to correct it.

Matt did mention in one of the recent, colossal jQuery threads that he
uses jQuery at work and doesn't have much time for his own code
anymore. I don't know if he is keeping up to date.
I don't think any library should be endorsed. Or condemned. Matt's
library does not appear to be maintained.

Is there a bug count that, say, Prototype exceeds, yet Javascript
toolbox doesn't?

Which library should I use?

would be a good FAQEntry.

It could cover a range of things from: What are your needs/what are
you trying to accomplish? Or all or none of the following:

Library: jQuery :
overview: <BLAH>
pro: small, simple API
con: oversimplified; code behind methods is complicated, difficult
to test
<UNBIASED EXAMPLE>
known bugs /issues: <UNBIASED EXAMPLE>
highlights:

Then the reader can make his onw decision.

Pick Popular libraries that getasked about frequently. EXT, YUI,

I don't think Matt's library should be mentioned because it is not a
frequently asked question. Also there is not a consensus that Matt's
library is bad (actually it is probably the contrary) so I wouldn't
want to imply anything about his code.
Peter
Feb 17 '08 #27
On Feb 17, 1:41 am, Peter Michaux <petermich...@g mail.comwrote:
Matt did mention in one of the recent, colossal jQuery threads that he
uses jQuery at work and doesn't have much time for his own code
anymore. I don't know if he is keeping up to date.
I don't read this group as intensely anymore, but I'm flattered that I
am remembered! ;) I will now proceed to wander off-topic...

I do not write much code anymore, either at home or work. You know how
it goes, all genius must happen before wife and kids, and I'm way too
late for that. I consider most of my code to be pretty solid for what
it does, and there isn't a lot of need to re-visit it. Certainly some
of it should be removed or re-written, since I now know better
practices and could create a better product. But for the most part, I
think a lot of my previous work (certainly not all of it) is still
pretty good.

I have updated some of my code recently, like the table sorting/
filtering/paging library, but I haven't put all the latest stuff out
there. I just don't have much time anymore, or to be honest, much
interest. I use jQuery quite a bit at work and for personal stuff. Not
because it's perfect, because it's certainly not, but because I know
my limited scope and requirements and the trade-off of using a single
library that does everything _I_ need correctly in the environment _I_
know I have versus writing things from scratch definitely leans in the
favor of the jQuery approach.

So lately some of my efforts have been put into writing jquery plugins
for personal/work purposes, or fixing existing plugins, or patching
jquery code to work as I would like it to.

I also spend more time working on Gadgets these days, which I find
more interesting :)
http://www.google.com/ig/authors?hl=...0mattkruse.com
I don't think Matt's library should be mentioned because it is not a
frequently asked question. Also there is not a consensus that Matt's
library is bad (actually it is probably the contrary) so I wouldn't
want to imply anything about his code.
My code may be known in small circles, but nowhere close to libraries
like jquery, prototype, etc. I doubt that anyone looking for pros/cons
of "major libraries" would be looking for comments on my code.

Matt Kruse
Feb 17 '08 #28
On Sun, 17 Feb 2008 at 01:55:27, in comp.lang.javas cript, Richard
Cornford wrote:

<snip>
>putting
words into other people's moths
<snip>

I like it :-)

John
--
John Harris
Feb 17 '08 #29
On Feb 17, 12:36 pm, John G Harris <j...@nospam.de mon.co.ukwrote:
On Sun, 17 Feb 2008 at 01:55:27, in comp.lang.javas cript, Richard

Cornford wrote:

<snip>>puttin g
words into other people's moths

<snip>

I like it :-)

John
--
John Harris
Like a mouth to the flame...
Feb 17 '08 #30

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
5567
by: Mantorok Redgormor | last post by:
Would this by any chance invoke undefined behavior? extern int printf(const char *, ...); int main(void) { printf("Hello\n"); return 0; } That is, providing my own printf prototype would invoke undefined behavior in anyway? Assuming the implementation is c89 of course.
21
3852
by: Rob Somers | last post by:
Hey people, I read a good thread on here regarding the reason why we use function prototypes, and it answered most of my questions, but I wanted to double check on a couple of things, as I am writing something up on functions, and I don't like writing about things I am not sure about. Ok, then, here we go: I initially thought that one would only really need to use a function
4
2239
by: jemptymethod | last post by:
http://htmatters.net/htm/1/2006/01/EIBTI-for-Javascript-explicit-is-better-than-implicit.cfm
12
2200
by: petermichaux | last post by:
Hi, I've been reading the recent posts and older archives of comp.lang.javascript and am surprised by the sentiments expressed about the prototype.js library for a few reasons: 1) The library has been referred to as "junk" many times which is a strong opinion against the relatively high popularity of the library. I know popularity doesn't make something good.
11
1528
by: shypen42 | last post by:
Hi all, I'm very confused by the relation between "prototype" and that "Prototype.js" library that seems to be used quite a lot (not by knowledgeable people from this group if I understood correctly). For example, when I do this, I use the keyword (?) "prototype": function Example() {
45
3032
by: bigdadro | last post by:
I've created a new class using prototype.js. After I make the ajax.request all references to this.myClassMethodorVariable are lost. Does the ajax method blow out the object persistance? I'm fairly new to OOP javascript so could be (and probably am) overlooking some detail. Below is the logic of what i'm trying to do. //Javascript code var myClass = Class.create(); myClass.prototype={ initialize: function(fm) {
28
2639
by: Diodeus | last post by:
I would like to set up an event observer outside of an object, so I can't use this.bindAsEventListener. How can I pass the correct object reference? I tried something like this, and various other variations, but no luck. This works when I set it up from inside the object, using "this.", Event.observe(targetId,'click',targetId.select.bindAsEventListener(this),false);
23
1769
by: Dautkhanov | last post by:
Hello ! Does anybody have cutted version of prototype.js with the AJAX functionality only? I am a new in prototype.js topic, so I think this task should be done by other developers. Maybe protorype.js should be splitted into small pieces of the js scripts with groupped functionality
3
1810
by: mike_solomon | last post by:
I am trying to use prototype.js to log javascript errors among other things but by including <script type="text/javascript" src="prototype.js"></scriptin my page some of my existing javascript no longer works for example function submitAction(form,newaction,hiddenName,hiddenValue) {
83
4226
by: liketofindoutwhy | last post by:
I am learning more and more Prototype and Script.aculo.us and got the Bungee book... and wonder if I should get some books on jQuery (jQuery in Action, and Learning jQuery) and start learning about it too? Once I saw a website comparing Prototype to Java and jQuery to Ruby... but now that I read more and more about Prototype, it is said that Prototype actually came from Ruby on Rails development and the creator of Prototype created it...
0
10028
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9868
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9707
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8709
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7242
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6533
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5139
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5301
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3804
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.