For just a simple example of what I think Werner was talking about,
consider the following snippet (o is any Object). By messing around with
the prototype of the built-in "Object" object, the number of and types
of variables "p" in the below snippet have been changed. In some cases
this will cause problems, especially in libraries that do that sort of
iteration. For that reason, prototype hacking is generally frowned upon,
however.. these types of issues can be identified and fixed fairly
easily, and again IMHO (for my project), the benefits of the
prototype.js library outweigh these negatives. Having said that, it's
not perfect and I will eventually evaluate Dojo in light of all the
recent posts about it.

for (var p in o)
{
        alert(o[p]);
}

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
danilocelic
Sent: Tuesday, January 03, 2006 4:39 PM
To: [email protected]
Subject: Re: [Rails-spinoffs] Re: Status of Prototype

Werner Punz wrote:

> The most famous example being the struts client side validation which 
> basically was disabled by this, to my knowledge.
> I know this problem has been fixed. But one of the main critique
points
> by the main critique was, that there are still many of those
extensions 
> which could cause potential breakage.

For my own education, could you point to a resource that lists, or
discusses what these potential breakages could be and what would cause
them within a library/framework such as prototype?

Danilo

_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

The information transmitted in this electronic mail is intended only for the
person or entity to which it is addressed and may contain confidential,
proprietary, and/or privileged material.  Any review, retransmission, 
dissemination or other use of, or taking of any action in reliance upon,
this information by persons or entities other than the intended recipient
is prohibited. If you received this in error, please contact the sender and
delete the material from all computers.

_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to