我为什么要避开prototype.js?

问题描述:

我最近开始玩prototype.js以及

scriptaculous,并发现它们在开发网页时非常有用

有很多流行音乐。模态框,SlideUp / Down,日历等。


我最近也加强了潜伏和参与这个

新闻组。有些人主张使用原型,而其他人则坚决反对它。有什么具体原因我不能使用它吗?b $ b不应该使用它吗?它效率低下吗?看来今天的电脑

有足够的处理能力来克服javascript中执行速度最慢的
解决方案。能够向页面(对我而言)注入各种各样的效果远远超过任何伤害的好处。

I''ve recently begun playing with prototype.js as well as
scriptaculous, and found both very helpful in developing web pages
with lots of pop. Modal boxes, SlideUp/Down, calendars, etc.

I''ve also recently ramped up my lurking and participation in this
newsgroup. There are some who advocate using prototype, and others who
are adamantly opposed to it. Are there any concrete reasons why I
should NOT use it? Is it inefficient? It seems that today''s computers
have sufficient processing power to overcome most slowly implemented
solutions in javascript. And the benefits of being able to inject such
a wide variety of effects into a page (to me) far outweigh any harm.

nolo contendere meinte:
nolo contendere meinte:

有什么具体的理由我为什么不会使用它?
不应该使用它?
Are there any concrete reasons why I
should NOT use it?



因为它不会促进对正确的JavaScript编程的理解

(甚至使用)。
>
你迟早会遇到问题(因为你会将原型与mooTools和jQuery结合起来,然后投入另一个框架来获取

好的衡量标准,所有这些框架都有其个人的b $ b缺点)。

你最终会问另一个我的这个 - 或 - 那个形式

元素不能像我期望的那样工作,为什么?问题。


你会得到的所有建议是在别处寻求帮助。

Gregor

-
http://www.gregorkofler.at ::: Landschafts- und Reisefotografie
http://www.licht-blick.at :::论坛Multivisionsvortr?ge
http://www.image2d.com :: :Bildagenturfürdenalpinen Raum

Since it won''t foster any understanding of proper JavaScript programming
(or even use).

You''ll run into problems sooner or later (because you''ll combine
prototype with mooTools and jQuery and throw in another "framework" for
good measure, and all those "frameworks" have their individual
shortcomings).
You will end up asking another one of those "my this-or-that form
element doesn''t work the way I expect it, why?" questions.

And all the advice you''ll get, is to look for help elsewhere.
Gregor
--
http://www.gregorkofler.at ::: Landschafts- und Reisefotografie
http://www.licht-blick.at ::: Forum für Multivisionsvortr?ge
http://www.image2d.com ::: Bildagentur für den alpinen Raum


nolo contendere meinte:
nolo contendere meinte:

至于不促进对Javascript的理解,这不是什么

库。作为开发人员,我有责任学习

语言。
As far as not fostering understanding of Javascript, that''s not what
libraries are for. It''s my responsibility as a developer to learn the
language.



讨论JS库的* use *不是clj的重点。

Discussing the *use* of JS libraries is not the focus of clj.


我绝对可以看到你的观点,它可能是一个拐杖,并且

可以实现糟糕的编程实践以及

理解语言的懒惰。如果这是主要的劣势,我将不会为此担心。我刚刚看到一些海报的标签,

原型是由不懂javascript的人写的,但

没有证据支持那个说法。
I can definitely see your point that it could be a crutch though, and
could enable bad programming practices as well as laziness in
understanding the language. If that''s the primary disadvantage, I
won''t worry about it. I''ve just seen in some poster''s tags that
prototype was written by people who don''t understand javascript, but
there was no evidence to support that claim.



谷歌可能会有所帮助 - 这些问题已经讨论了这些问题(或 - 对某些问题 - 缺少这些问题)

好几次。


Gregor


-
http://www.gregorkofler.at ::: Landschafts- und Reisefotografie
http://www.licht-blick.at :::论坛f?Multivisionsvortr?ge
http://www.image2d.com :::Bildagenturfürdenalpinen Raum

Google might help - the problems (or - for some - the lack of these)
with these frameworks have been discussed in this NG several times.

Gregor

--
http://www.gregorkofler.at ::: Landschafts- und Reisefotografie
http://www.licht-blick.at ::: Forum für Multivisionsvortr?ge
http://www.image2d.com ::: Bildagentur für den alpinen Raum


11月12日下午12:37,Gregor Kofler< use ... @ gregorkofler.atwrote:
On Nov 12, 12:37 pm, Gregor Kofler <use...@gregorkofler.atwrote:

nolo contendere meinte:
nolo contendere meinte:

至于不促进对Javascript的理解,那不是什么

库。作为开发人员,我有责任学习

语言。
As far as not fostering understanding of Javascript, that''s not what
libraries are for. It''s my responsibility as a developer to learn the
language.



讨论JS库的* use *不是clj的重点。


Discussing the *use* of JS libraries is not the focus of clj.



我想不是 - 正如我之前所说,我是新来的。然而,只是

,因为它不是重点并不意味着不能有关于它的辅助讨论。

I suppose not--as i stated previously, I''m new here. However, just
because it''s not the focus doesn''t mean that there can''t be ancillary
discussions about it.


>
>

我绝对可以看出你的观点,它可能是一个拐杖,而

可能会导致糟糕的编程习惯以及懒惰br />
理解语言。如果这是主要的劣势,我将不会为此担心。我刚刚看到一些海报的标签,

原型是由不懂javascript的人写的,但

没有证据支持那个说法。
I can definitely see your point that it could be a crutch though, and
could enable bad programming practices as well as laziness in
understanding the language. If that''s the primary disadvantage, I
won''t worry about it. I''ve just seen in some poster''s tags that
prototype was written by people who don''t understand javascript, but
there was no evidence to support that claim.



谷歌可能会提供帮助 - 问题(或 - 对于某些人 - 缺少这些)这些框架中已经讨论了这些框架的问题几次。


Google might help - the problems (or - for some - the lack of these)
with these frameworks have been discussed in this NG several times.



这样做了。


我没有意识到prototype.js是如此热门的话题,或仅仅是


在回顾了关于这个主题的一些线索之后,我发现了一个

启发之一:
http://tinyurl.com/yps5l9


谢谢。

Did so.

I had not realized prototype.js was such a hot topic, or that just by
bringing it up I might invite myself to being viewed with immediate
hostility, or, at best, a standoffish neutrality rather than with a
friendly smile and an offer of a helping hand. Still, better than what
some newbies get at c.l.perl.misc...;-)

After reviewing some threads about this subject, I discovered an
enlightening one:
http://tinyurl.com/yps5l9

Thanks.