Connecting Tech Pros Worldwide Forums | Help | Site Map

Why should I eschew prototype.js?

nolo contendere
Guest
 
Posts: n/a
#1: Nov 12 '07
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.


Gregor Kofler
Guest
 
Posts: n/a
#2: Nov 12 '07

re: Why should I eschew prototype.js?


nolo contendere meinte:
Quote:
Are there any concrete reasons why I
should NOT use it?
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
Gregor Kofler
Guest
 
Posts: n/a
#3: Nov 12 '07

re: Why should I eschew prototype.js?


nolo contendere meinte:
Quote:
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.
Discussing the *use* of JS libraries is not the focus of clj.
Quote:
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.

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
Guest
 
Posts: n/a
#4: Nov 12 '07

re: Why should I eschew prototype.js?


On Nov 12, 12:37 pm, Gregor Kofler <use...@gregorkofler.atwrote:
Quote:
nolo contendere meinte:
>
Quote:
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.
>
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.
Quote:
>
Quote:
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.
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.

nolo contendere
Guest
 
Posts: n/a
#5: Nov 12 '07

re: Why should I eschew prototype.js?


On Nov 12, 1:24 pm, Gregor Kofler <use...@gregorkofler.atwrote:
Quote:
nolo contendere meinte:
>
Quote:
I had not realized prototype.js was such a hot topic,
>
I'd say it is anything but "hot" on clj.
>
s/hot/hot button/

s0lnic
Guest
 
Posts: n/a
#6: Nov 12 '07

re: Why should I eschew prototype.js?


nolo contendere wrote:
Quote:
Are there any concrete reasons why I
should NOT use it?
No, there aren't, unless you're able to write something better then
jQuery/Prototype/YUI/Mojo/whatever or you just want to have your own
library and you have enough time to do this. If you're creating webapps
with a rich UI then you definitely need a JavaScript library.
Quote:
Is it inefficient?
No, it's not.

--
# Regards || piotr[.]solnica[at]gmail[.]com || jid : s0lnic@jabster.pl #
# s0lnic || http://blog.solnic.in5.pl || icq : 385935391 #
Thomas 'PointedEars' Lahn
Guest
 
Posts: n/a
#7: Nov 12 '07

re: Why should I eschew prototype.js?


s0lnic wrote:
Quote:
nolo contendere wrote:
Quote:
>Are there any concrete reasons why I
>should NOT use it?
>
No, there aren't, unless you're able to write something better then
jQuery/Prototype/YUI/Mojo/whatever
Almost anyone is able to write something better than those, with *maybe*
the exception of YUI.
Quote:
or you just want to have your own library and you have enough time
to do this.
That is an entirely different matter, of course.
Quote:
If you're creating webapps with a rich UI then you definitely need
a JavaScript library.
But not necessarily a library written by people who don't have a clue
about what they are doing.


PointedEars, with a fitting random signature
--
Prototype.js was written by people who don't know javascript for people
who don't know javascript. People who don't know javascript are not
the best source of advice on designing systems that use javascript.
-- Richard Cornford, cljs, <f806at$ail$1$8300dec7@news.demon.co.uk>
nolo contendere
Guest
 
Posts: n/a
#8: Nov 12 '07

re: Why should I eschew prototype.js?


On Nov 12, 2:58 pm, s0lnic <l...@my.sigwrote:
Quote:
nolo contendere wrote:
Quote:
Are there any concrete reasons why I
should NOT use it?
>
No, there aren't, unless you're able to write something better then
jQuery/Prototype/YUI/Mojo/whatever or you just want to have your own
library and you have enough time to do this. If you're creating webapps
with a rich UI then you definitely need a JavaScript library.
>
Quote:
Is it inefficient?
>
No, it's not.
Thanks Piotr. That's the second time you've helped me :-).

Thomas 'PointedEars' Lahn
Guest
 
Posts: n/a
#9: Nov 12 '07

re: Why should I eschew prototype.js?


nolo contendere wrote:
Quote:
On Nov 12, 2:58 pm, s0lnic <l...@my.sigwrote:
Quote:
>nolo contendere wrote:
Quote:
>>Are there any concrete reasons why I
>>should NOT use it?
>No, there aren't, unless you're able to write something better then
>jQuery/Prototype/YUI/Mojo/whatever or you just want to have your own
>library and you have enough time to do this. If you're creating webapps
>with a rich UI then you definitely need a JavaScript library.
>>
Quote:
>>Is it inefficient?
>No, it's not.
>
Thanks Piotr. That's the second time you've helped me :-).
Blind leading the blind.


PointedEars
--
"Use any version of Microsoft Frontpage to create your site. (This won't
prevent people from viewing your source, but no one will want to steal it.)"
-- from <http://www.vortex-webdesign.com/help/hidesource.htm>
Matt Kruse
Guest
 
Posts: n/a
#10: Nov 12 '07

re: Why should I eschew prototype.js?


On Nov 12, 9:44 am, nolo contendere <simon.c...@fmr.comwrote:
Quote:
There are some who advocate using prototype, and others who
are adamantly opposed to it.
There are a few long threads (one recently) about the concept of
libraries and philosophies about how javascript should be developed.
People usually fall somewhere in the spectrum between "use a library
like prototype and do it all that way" and "never use a general-
purpose library - write your own code to meet the requirement at
hand".

Where you land depends a lot on your javascript knowledge and
experience, your goals, priorities, and context. If you are
comfortable with the idea of using a general-purpose library, then
that whole discussion can be tabled and instead you can focus on which
library you should use and how you should best use it.
Quote:
Are there any concrete reasons why I
should NOT use it?
Stylistic preferences would be one. I don't like its emphasis on
classes, inheritance, etc. For me, the API is too large and complex -
it tries to do more than I want it to. And I found it hard to use to
just add some quick effects or helper functions to an existing page.
I've never looked into the internals to judge it technically.
Quote:
Is it inefficient?
Certainly more inefficient than using core DOM functions and built-in
javascript functionality. But probably not enough to make a difference
in most cases. If you get into heavy UI stuff, general-purpose
libraries tend to slow down, in my experience.
Quote:
It seems that today's computers
have sufficient processing power to overcome most slowly implemented
solutions in javascript.
Depends on your target audience.
Quote:
And the benefits of being able to inject such
a wide variety of effects into a page (to me) far outweigh any harm.
Again, it comes back to your requirements and priorities. If you want
to support as many users and browsers as possible, trying to create a
slick client-side UI with lots of effects and stuff will kill some
people.

I think it's best to read the arguments on both sides to become more
informed. Then consider all the factors in front of you and come to
your own conclusion about whether a javascript library will be helpful
to you.

Matt Kruse



nolo contendere
Guest
 
Posts: n/a
#11: Nov 12 '07

re: Why should I eschew prototype.js?


On Nov 12, 3:27 pm, Matt Kruse <m...@mattkruse.comwrote:
Quote:
On Nov 12, 9:44 am, nolo contendere <simon.c...@fmr.comwrote:
>
---8<---snip--->8--

Quote:
Quote:
And the benefits of being able to inject such
a wide variety of effects into a page (to me) far outweigh any harm.
>
Again, it comes back to your requirements and priorities. If you want
to support as many users and browsers as possible, trying to create a
slick client-side UI with lots of effects and stuff will kill some
people.
True, but you can't please all the people all the time. I'm testing
out my code in IE 6, FF 2.0, and Safari 3. That covers enough area for
me. Also, this is an internal site, so I can be reasonably sure of the
consistency and specs of the machines that will be used to view the
site.
Quote:
>
I think it's best to read the arguments on both sides to become more
informed. Then consider all the factors in front of you and come to
your own conclusion about whether a javascript library will be helpful
to you.
Sage advice for any topic.
Quote:
>
Matt Kruse
During the course of my research into the original question, your name
popped up a few times. I checked out your site, and also noticed that
the clj FAQ guy, Randy, had your Best Practices link in his sig. I
don't know too much about your credentials, but you at least seem to
try to help people rather than latch on to some trivial technicality
or misspelling or minutia and harp on it, for which you get my
respect.

I also noticed that you wrote several Google Gadgets--they look pretty
neat, although the target audience seems to be pretty advanced users
(read: hard-core geeks). By this I mean that the gadgets are very
customizable, which is a good thing, but the number of configuration
options may dissuade it's adoption by the general masses.

Anyway, thanks for your input. It was constructive.

Gregor Kofler
Guest
 
Posts: n/a
#12: Nov 12 '07

re: Why should I eschew prototype.js?


nolo contendere meinte:
Quote:
True, but you can't please all the people all the time. I'm testing
out my code in IE 6, FF 2.0, and Safari 3. That covers enough area for
me.
It's not a compatibility issue (at least with a decent library) -
webpages should always provide a fallback for people without JS. JS for
the eye-candy and the enhanced usability, but not for the core
functionality, but then...
Quote:
Also, this is an internal site, so I can be reasonably sure of the
consistency and specs of the machines that will be used to view the
site.
....YMMV.

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
s0lnic
Guest
 
Posts: n/a
#13: Nov 12 '07

re: Why should I eschew prototype.js?


Thomas 'PointedEars' Lahn wrote:
Quote:
Quote:
>Thanks Piotr. That's the second time you've helped me :-).
>
Blind leading the blind.
Why? There are no perfect tools, I'm sure you know that. Prototype helps me
a lot in my everyday work, there are many things which bugs me, but it's
getting better and better. I don't have any serious problems with it, its
current http://www.prototypejs.org/api is very useful, its performance is
just fine, it resolves many common crossbrowser issues which every web
developer has to deal with (sooner or later). I started using Prototype
about 1.5 year ago, before that I was writing all my JavaScript without a
use of any other library and it was sometimes really painful (back then
IE5.5 had to be supported ;P). Maybe you, JavaScript masters with zillions
years of experience, have better alternatives, maybe you have written your
very own libraries, which are better then anything else - good for you
then! I wish I had enough time to do the same, but I don't and I'm using
what's available, and Prototype IS a good option, maybe other libs are
better (jQuery looks very promising), I don't know, haven't used them in
any real project yet. The fact is that I DID use Prototype and there are
MANY working applications which are based on Prototype, and you know what?
People use these apps, and they really like them, so what's the problem?
No, stop, don't answer - Prototype creators don't know what they are doing,
they know sh*t about JavaScript, this library should be destroyed.
Whatever, man.

Cheers and EOT

--
# Regards || piotr[.]solnica[at]gmail[.]com || jid : s0lnic@jabster.pl #
# s0lnic || http://blog.solnic.in5.pl || icq : 385935391 #
Matt Kruse
Guest
 
Posts: n/a
#14: Nov 12 '07

re: Why should I eschew prototype.js?


On Nov 12, 1:43 pm, nolo contendere <simon.c...@fmr.comwrote:
Quote:
I also noticed that you wrote several Google Gadgets--they look pretty
neat, although the target audience seems to be pretty advanced users
(read: hard-core geeks). By this I mean that the gadgets are very
customizable, which is a good thing, but the number of configuration
options may dissuade it's adoption by the general masses.
True, but I wrote them all for my own use. My iGoogle page is heavily
customized and filled with tons of feeds and info. I make the gadgets
available to the world because I never know who might find them
useful :)

Matt Kruse


nolo contendere
Guest
 
Posts: n/a
#15: Nov 12 '07

re: Why should I eschew prototype.js?


On Nov 12, 3:50 pm, Matt Kruse <m...@mattkruse.comwrote:
Quote:
On Nov 12, 1:43 pm, nolo contendere <simon.c...@fmr.comwrote:
>
Quote:
I also noticed that you wrote several Google Gadgets--they look pretty
neat, although the target audience seems to be pretty advanced users
(read: hard-core geeks). By this I mean that the gadgets are very
customizable, which is a good thing, but the number of configuration
options may dissuade it's adoption by the general masses.
>
True, but I wrote them all for my own use. My iGoogle page is heavily
customized and filled with tons of feeds and info. I make the gadgets
available to the world because I never know who might find them
useful :)
aahh...I thought you might be trying for the Google Gadget Venture:
http://www.google.com/gadgetventures/

Randy Webb
Guest
 
Posts: n/a
#16: Nov 12 '07

re: Why should I eschew prototype.js?


nolo contendere said the following on 11/12/2007 10:44 AM:
Quote:
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.
What you call "lots of pop" can be very annoying to some people though.
And that has nothing to do with Prototype.js in particular. What you are
going to find in this group is that you can't get two people here to
agree on anything.
Quote:
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?
The major problem, lately, with prototype.js is people asking here "Why
doesn't it work?" and Peter Michaux has been posting the best answer to
those questions. It is no different than trying to ask in a C++ group
why a program written in C++ doesn't "work". The only difference is one
is open source and one isn't.

In contrast, if someone posts a question along the lines of "This is how
prototype.js does it, is there a better way?" (or similar) then it would
appropriate here.

Why you should, or shouldn't, use it is a decision that you have to
make. Whether it satisfies your needs or not. And, what your end goals
are. If your goal is simply to get something on the web without ever
wanting to learn more, and it satisfies your needs, then use it.
Quote:
Is it inefficient?
I can't, and so I won't, comment on that. I have not looked at the
prototype code in a very long time.
Quote:
It seems that today's computers have sufficient processing power to
overcome most slowly implemented solutions in javascript.
That is a backwards issue that has been in computing for over 30 years.
"I don't have to write efficient code because computers are fast enough
to compensate for it."

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Thomas 'PointedEars' Lahn
Guest
 
Posts: n/a
#17: Nov 13 '07

re: Why should I eschew prototype.js?


nolo contendere wrote:
Quote:
On Nov 13, 12:56 pm, Gregor Kofler <use...@gregorkofler.atwrote:
Quote:
>nolo contendere meinte:
Quote:
>>Again, this may be the browser's fault then. Bear in mind that browser
>>developers do have to cater to existing web pages, and have all sorts
>>of testing to try to ensure that nothing breaks in future versions.
>You know what? There are websites (not conforming to standards, sure),
>wich looked perfectly ok on IE6, but break more or less seriously on IE7.
>
Of course, I'm saying that the future versions of browsers would make
the attempt to break as few sites out there as possible. If the
majority of sites DON'T conform to ECMA standards, the deveoplers will
cater towards THAT first, and not the standards.
And therefore writing non-standard code that breaks *now* is a good thing?
That's just ridiculous.
Quote:
Quote:
Quote:
>>Wouldn't evolution cause the "good" librarues to bubble up
>>and become the de facto standard? Wouldn't "bad libraries" break in
>>future revs, independent browsers, etc, and the "good libraries" gain
>>mind- and market-share with each manifestation of the "bad
>>libararies'" failure?
>I suppose that's the reason, why the least standards compliant browser
>has the marginal market share of, say, 80 percent?
>
You're missing the point. I'm saying if you have enough market share,
rightly or wrongly, you MAKE the standards.
That is what companies like Microsoft want naive people like you to believe.


PointedEars
--
var bugRiddenCrashPronePieceOfJunk = (
navigator.userAgent.indexOf('MSIE 5') != -1
&& navigator.userAgent.indexOf('Mac') != -1
) // Plone, register_function.js:16
nolo contendere
Guest
 
Posts: n/a
#18: Nov 13 '07

re: Why should I eschew prototype.js?


On Nov 13, 1:31 pm, Thomas 'PointedEars' Lahn <PointedE...@web.de>
wrote:
Quote:
nolo contendere wrote:
Quote:
On Nov 13, 12:56 pm, Gregor Kofler <use...@gregorkofler.atwrote:
Quote:
nolo contendere meinte:
>Again, this may be the browser's fault then. Bear in mind that browser
>developers do have to cater to existing web pages, and have all sorts
>of testing to try to ensure that nothing breaks in future versions.
You know what? There are websites (not conforming to standards, sure),
wich looked perfectly ok on IE6, but break more or less seriously on IE7.
>
Quote:
Of course, I'm saying that the future versions of browsers would make
the attempt to break as few sites out there as possible. If the
majority of sites DON'T conform to ECMA standards, the deveoplers will
cater towards THAT first, and not the standards.
>
And therefore writing non-standard code that breaks *now* is a good thing?
That's just ridiculous.
>
Why do you infer that the non-standard code breaks now? Richard's
stance was that it DOES work, albeit coincidentally.
Quote:
Quote:
Quote:
>Wouldn't evolution cause the "good" librarues to bubble up
>and become the de facto standard? Wouldn't "bad libraries" break in
>future revs, independent browsers, etc, and the "good libraries" gain
>mind- and market-share with each manifestation of the "bad
>libararies'" failure?
I suppose that's the reason, why the least standards compliant browser
has the marginal market share of, say, 80 percent?
>
Quote:
You're missing the point. I'm saying if you have enough market share,
rightly or wrongly, you MAKE the standards.
>
That is what companies like Microsoft want naive people like you to believe.
I don't think I'm being naive. I think hoping/expecting/suggesting
that no one use "imperfect" libraries is naive. If you disagree with
the status quo, and you know better and have the ability, make change.

Gregor Kofler
Guest
 
Posts: n/a
#19: Nov 13 '07

re: Why should I eschew prototype.js?


nolo contendere meinte:
Quote:
Why do you infer that the non-standard code breaks now? Richard's
stance was that it DOES work, albeit coincidentally.
This very example. Richard picked an example to illustrate the bad code
quality, nothing else.
Quote:
I don't think I'm being naive. I think hoping/expecting/suggesting
that no one use "imperfect" libraries is naive.
I'd say no one on clj hopes/expects/suggests that *no one* uses
imperfect libraries. However, if one is willing and able, there might be
better ways.

Anyway, since you are perfectly satisfied with prototype and can live
with it's shortcomings: use it, and end this futile discussion.

EOD, 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
Randy Webb
Guest
 
Posts: n/a
#20: Nov 13 '07

re: Why should I eschew prototype.js?


nolo contendere said the following on 11/13/2007 12:14 PM:
Quote:
On Nov 13, 12:56 pm, Gregor Kofler <use...@gregorkofler.atwrote:
Quote:
>nolo contendere meinte:
>>
Quote:
>>Again, this may be the browser's fault then. Bear in mind that browser
>>developers do have to cater to existing web pages, and have all sorts
>>of testing to try to ensure that nothing breaks in future versions.
>You know what? There are websites (not conforming to standards, sure),
>wich looked perfectly ok on IE6, but break more or less seriously on IE7.
>
Of course, I'm saying that the future versions of browsers would make
the attempt to break as few sites out there as possible. If the
majority of sites DON'T conform to ECMA standards, the deveoplers will
cater towards THAT first, and not the standards.
I have been saying that in this group for years. Give up, it doesn't do
any good.

90% of the people that write Javascript don't know what ECMAScript is.
Of the remaining 10%, 90% of those don't care what ECMAScript is.
The other 1% post here proclaiming it as the savior of Javascript.

ECMAScript, in its current incarnation, was nothing more than an effort
to "standardize" what was already in place. And probably for no other
reason than to be able to say "There is a standard". And, it was a
stroke of marketing/research genius on the part of Microsoft.
Quote:
Quote:
Quote:
>>I highly doubt that just because a page doesn't conform to ECMA
>>standards, the browser developers will say "screw that web page, if
>>they don't follow ECMA they don't get a proper rendering in our
>>browser." This may work if the percentage of "bad" web pages were
>>vanishingly small, but hey, this is the real world where people are
>>stupid and market share is of vital importance to a browser's
>>continued existence. I'm not saying I'm encouraging bad coding, or
>>stupidity, but I'm being a realist. Once all market share is captured,
>>THEN you can begin to gradually enforce whichever standards are the
>>best. But until then, it's a free-for-all.
>Websites all break in different ways. It's impossible to care about all
>of them.
>>
Quote:
>>I truly do appreciate your perspective. I did a little research on
>>you, and you appear to be a very intelligent individual, although (and
>>I don't mean to be destructively critical) a bit of an idealist/
>>purist--which the world does need, but isn't the way the world works.
>What's your point? You're looking for points against prototype, but
>whenever points follow you dismiss them with empty statements.
>
No, I don't dismiss them. I appreciate the points. My argument is that
however wonderful the vision is of a completely standards compliant
web, reality differs. It's pointless to rail against something one
deems "bad", and not do anything about it. Either adapt, or strive to
improve it. Here, Robert does strive to improve it a little by
engaging in this discussion, but his efforts would be more fruitful
simply to come up with a better library.
It was Richard, not Robert, but, I don't think Richard was trying to
improve on Prototype.js as much as show the flaws in it. There is
another one that is, perhaps without a doubt, the mostly hotly debated
in this group and that is the use of $ as a function name. The main
issue is "ECMAScript says it is intended for machine generated code" and
people grasp onto that and want to condemn the practice simply because
"ECMAScript says so".

The $ function itself is another area where it could be improved simply
by removing some of it. It is over-written for what it is used for.
Quote:
Quote:
Quote:
>>Wouldn't evolution cause the "good" librarues to bubble up
>>and become the de facto standard? Wouldn't "bad libraries" break in
>>future revs, independent browsers, etc, and the "good libraries" gain
>>mind- and market-share with each manifestation of the "bad
>>libararies'" failure?
>I suppose that's the reason, why the least standards compliant browser
>has the marginal market share of, say, 80 percent?
>
You're missing the point. I'm saying if you have enough market share,
rightly or wrongly, you MAKE the standards.
I don't think they "make" the standard as much as they "become" the
standard. Microsoft drives this market, whether people admit it or not.
It isn't a pro-MS or anti-MS sentiment, it is just a fact. If MS came
out next week and proclaimed "The only markup language we will support
in the future is MSML(Microsoft Markup Language), the only script
language we will support is MSScript (Microsoft Script), and nothing
else". Then the rest of the browser world would flip on it's head in an
effort to support them and the W3C would become a thing of the past.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Randy Webb
Guest
 
Posts: n/a
#21: Nov 13 '07

re: Why should I eschew prototype.js?


Thomas 'PointedEars' Lahn said the following on 11/13/2007 12:31 PM:
Quote:
nolo contendere wrote:
Quote:
>On Nov 13, 12:56 pm, Gregor Kofler <use...@gregorkofler.atwrote:
Quote:
>>nolo contendere meinte:
>>>Again, this may be the browser's fault then. Bear in mind that browser
>>>developers do have to cater to existing web pages, and have all sorts
>>>of testing to try to ensure that nothing breaks in future versions.
>>You know what? There are websites (not conforming to standards, sure),
>>wich looked perfectly ok on IE6, but break more or less seriously on IE7.
>Of course, I'm saying that the future versions of browsers would make
>the attempt to break as few sites out there as possible. If the
>majority of sites DON'T conform to ECMA standards, the deveoplers will
>cater towards THAT first, and not the standards.
>
And therefore writing non-standard code that breaks *now* is a good thing?
That's just ridiculous.
What is more ridiculous is to believe that everybody is going to write
"perfect" code. Now or ever.
Quote:
Quote:
Quote:
>>>Wouldn't evolution cause the "good" librarues to bubble up
>>>and become the de facto standard? Wouldn't "bad libraries" break in
>>>future revs, independent browsers, etc, and the "good libraries" gain
>>>mind- and market-share with each manifestation of the "bad
>>>libararies'" failure?
>>I suppose that's the reason, why the least standards compliant browser
>>has the marginal market share of, say, 80 percent?
>You're missing the point. I'm saying if you have enough market share,
>rightly or wrongly, you MAKE the standards.
>
That is what companies like Microsoft want naive people like you to believe.
Oh monkeys ass.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
nolo contendere
Guest
 
Posts: n/a
#22: Nov 13 '07

re: Why should I eschew prototype.js?


On Nov 13, 2:54 pm, Randy Webb <HikksNotAtH...@aol.comwrote:
Quote:
Thomas 'PointedEars' Lahn said the following on 11/13/2007 12:31 PM:
>
Quote:
nolo contendere wrote:
Quote:
On Nov 13, 12:56 pm, Gregor Kofler <use...@gregorkofler.atwrote:
>nolo contendere meinte:
>>Again, this may be the browser's fault then. Bear in mind that browser
>>developers do have to cater to existing web pages, and have all sorts
>>of testing to try to ensure that nothing breaks in future versions.
>You know what? There are websites (not conforming to standards, sure),
>wich looked perfectly ok on IE6, but break more or less seriously on IE7.
Of course, I'm saying that the future versions of browsers would make
the attempt to break as few sites out there as possible. If the
majority of sites DON'T conform to ECMA standards, the deveoplers will
cater towards THAT first, and not the standards.
>
Quote:
And therefore writing non-standard code that breaks *now* is a good thing?
That's just ridiculous.
>
What is more ridiculous is to believe that everybody is going to write
"perfect" code. Now or ever.
>
Quote:
Quote:
>>Wouldn't evolution cause the "good" librarues to bubble up
>>and become the de facto standard? Wouldn't "bad libraries" break in
>>future revs, independent browsers, etc, and the "good libraries" gain
>>mind- and market-share with each manifestation of the "bad
>>libararies'" failure?
>I suppose that's the reason, why the least standards compliant browser
>has the marginal market share of, say, 80 percent?
You're missing the point. I'm saying if you have enough market share,
rightly or wrongly, you MAKE the standards.
>
Quote:
That is what companies like Microsoft want naive people like you to believe.
>
Oh monkeys ass.
LMMAO!

Doug Miller
Guest
 
Posts: n/a
#23: Nov 13 '07

re: Why should I eschew prototype.js?


In article <tb2dnRIadtoib6Ta4p2dnAA@giganews.com>, Randy Webb <HikksNotAtHome@aol.comwrote:
Quote:
>Thomas 'PointedEars' Lahn said the following on 11/13/2007 12:31 PM:
Quote:
>>
>And therefore writing non-standard code that breaks *now* is a good thing?
>That's just ridiculous.
>
>What is more ridiculous is to believe that everybody is going to write
^^^^^^^^^
Quote:
>"perfect" code. Now or ever.
You misspelled "anybody". <g>

--
Regards,
Doug Miller (alphageek at milmac dot com)

It's time to throw all their damned tea in the harbor again.
Matt Kruse
Guest
 
Posts: n/a
#24: Nov 13 '07

re: Why should I eschew prototype.js?


On Nov 13, 1:20 pm, Thomas 'PointedEars' Lahn <PointedE...@web.de>
wrote:
Quote:
That
aside, technical newsgroups like this exist to increase understanding.
And also to inflate the egos of people have a good technical
understanding and want to flaunt it for all to see by criticizing
everyone they can. It's amusing to watch sometimes.

This group exists for more than to simply reduce all problems to the
most efficient and standards-compliant code that could possibly be
written. There are Javascript-related questions that are only
partially technical. For example, recent discussions on libraries
point out that people have different priorities. If someone comes here
looking for advice on the pros and cons of library X, the technical
issues with the library is only part of the equation. Even if a
library has technical problems, using it still may be the best
business decision, and that overall discussion is still Javascript-
related.

Technical perfection is not _THE_ goal, but _A_ goal.

Critiques of code and offering advice on why it is good or bad and how
it could be improved is a great thing that should always be welcome.
But not at the expense of discussing what the OP is really trying to
figure out. That's where so many regulars on this group get it wrong.
IMO.

I would still like to see answers from some of the hardcore critics
here about real-world situations and what they would recommend when
real-world problems and priorities need to be taken into
consideration. When technical merit is probably not the #1 concern,
but maybe down the list a bit. Then falling back to the same old
"libraries suck" arguments and pointing to all coding practices that
conflict with the "standards" do you no good, and many here don't seem
to be able to carry on an intelligent conversation once their mantra
is irrelevant.

Matt Kruse

Randy Webb
Guest
 
Posts: n/a
#25: Nov 14 '07

re: Why should I eschew prototype.js?


Thomas 'PointedEars' Lahn said the following on 11/13/2007 2:20 PM:
Quote:
Randy Webb wrote:
Quote:
>Thomas 'PointedEars' Lahn said the following on 11/13/2007 12:31 PM:
Quote:
>>nolo contendere wrote:
>>>On Nov 13, 12:56 pm, Gregor Kofler <use...@gregorkofler.atwrote:
>>>>nolo contendere meinte:
>>>>>Again, this may be the browser's fault then. Bear in mind that browser
>>>>>developers do have to cater to existing web pages, and have all sorts
>>>>>of testing to try to ensure that nothing breaks in future versions.
>>>>You know what? There are websites (not conforming to standards, sure),
>>>>wich looked perfectly ok on IE6, but break more or less seriously on IE7.
>>>Of course, I'm saying that the future versions of browsers would make
>>>the attempt to break as few sites out there as possible. If the
>>>majority of sites DON'T conform to ECMA standards, the deveoplers will
>>>cater towards THAT first, and not the standards.
>>And therefore writing non-standard code that breaks *now* is a good thing?
>>That's just ridiculous.
>What is more ridiculous is to believe that everybody is going to write
>"perfect" code. Now or ever.
>
I did not state anything about "perfect code", you just made that up.
Let me check and re-read what I wrote. Nope, I never said you stated
anything about perfect code. Nope, sure didn't. Do you see where I did?
Didn't think so. Now, who is "making things up"?
Quote:
That aside, technical newsgroups like this exist to increase understanding.
No, that is not why they exist. If understanding is increased then it is
a by-product, not the product of the group.
Quote:
If no poster would believe that it is possible to convince a reasonable number
of readers that it is better to write good code, this newsgroup would have
lost its purpose and all people who post now could stop posting.
Your problem is you think that any code that doesn't follow some
"standard" to the letter isn't "good code". You couldn't be further from
the truth when it comes to writing cross-browser scripts for the web.
Quote:
That it still exists, and that people knowing more still provide people
knowing less with corrections, suggestions and better code proves that you
are utterly wrong.
You should endeavor to understand what it is that you are whining about
before you whine about it.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Thomas 'PointedEars' Lahn
Guest
 
Posts: n/a
#26: Nov 14 '07

re: Why should I eschew prototype.js?


Randy Webb wrote:
Quote:
Thomas 'PointedEars' Lahn said the following on 11/13/2007 2:20 PM:
Quote:
>Randy Webb wrote:
Quote:
>>Thomas 'PointedEars' Lahn said the following on 11/13/2007 12:31 PM:
>>>nolo contendere wrote:
>>>>On Nov 13, 12:56 pm, Gregor Kofler <use...@gregorkofler.atwrote:
>>>>>nolo contendere meinte:
>>>>>>Again, this may be the browser's fault then. Bear in mind that browser
>>>>>>developers do have to cater to existing web pages, and have all sorts
>>>>>>of testing to try to ensure that nothing breaks in future versions.
>>>>>You know what? There are websites (not conforming to standards, sure),
>>>>>wich looked perfectly ok on IE6, but break more or less seriously on IE7.
>>>>Of course, I'm saying that the future versions of browsers would make
>>>>the attempt to break as few sites out there as possible. If the
>>>>majority of sites DON'T conform to ECMA standards, the deveoplers will
>>>>cater towards THAT first, and not the standards.
>>>And therefore writing non-standard code that breaks *now* is a good thing?
>>>That's just ridiculous.
>>What is more ridiculous is to believe that everybody is going to write
>>"perfect" code. Now or ever.
^^^^^^^^^^^^^^
Quote:
Quote:
>I did not state anything about "perfect code", you just made that up.
>
Let me check and re-read what I wrote. Nope, I never said you stated
anything about perfect code. Nope, sure didn't. Do you see where I did?
As you appear to have impaired vision, I have marked it for you above.
Quote:
Didn't think so. Now, who is "making things up"?
You are.
Quote:
Quote:
>That aside, technical newsgroups like this exist to increase understanding.
>
No, that is not why they exist. If understanding is increased then it is
a by-product, not the product of the group.
A matter of opinion.
Quote:
Quote:
>If no poster would believe that it is possible to convince a reasonable number
>of readers that it is better to write good code, this newsgroup would have
>lost its purpose and all people who post now could stop posting.
>
Your problem is you think that any code that doesn't follow some
"standard" to the letter isn't "good code". You couldn't be further from
the truth when it comes to writing cross-browser scripts for the web.
You are an idiot. Any code has to be written according to some convention
or it could not qualify as good code; that is, code that does not only run
in a single test environment. Adhering to the convention of a standard,
especially *the* international standard for the programming language, is
vital for it to become interoperable. Without that property, it definitely
qualifies as bad code.


PointedEars
--
"Use any version of Microsoft Frontpage to create your site. (This won't
prevent people from viewing your source, but no one will want to steal it.)"
-- from <http://www.vortex-webdesign.com/help/hidesource.htm>
Gregor Kofler
Guest
 
Posts: n/a
#27: Nov 14 '07

re: Why should I eschew prototype.js?


Randy Webb meinte:
Quote:
I don't think they "make" the standard as much as they "become" the
standard. Microsoft drives this market, whether people admit it or not.
It isn't a pro-MS or anti-MS sentiment, it is just a fact. If MS came
out next week and proclaimed "The only markup language we will support
in the future is MSML(Microsoft Markup Language), the only script
language we will support is MSScript (Microsoft Script), and nothing
else". Then the rest of the browser world would flip on it's head in an
effort to support them and the W3C would become a thing of the past.
Come on... MS isn't even able to make their IE7 the "standard" browser.
People stick rather to the wretched interface of IE6, than "learn" to
use the added comfort of alternative products.

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
Randy Webb
Guest
 
Posts: n/a
#28: Nov 15 '07

re: Why should I eschew prototype.js?


Gregor Kofler said the following on 11/14/2007 4:22 AM:
Quote:
Randy Webb meinte:
>
Quote:
>I don't think they "make" the standard as much as they "become" the
>standard. Microsoft drives this market, whether people admit it or
>not. It isn't a pro-MS or anti-MS sentiment, it is just a fact. If MS
>came out next week and proclaimed "The only markup language we will
>support in the future is MSML(Microsoft Markup Language), the only
>script language we will support is MSScript (Microsoft Script), and
>nothing else". Then the rest of the browser world would flip on it's
>head in an effort to support them and the W3C would become a thing of
>the past.
>
Come on... MS isn't even able to make their IE7 the "standard" browser.
People stick rather to the wretched interface of IE6, than "learn" to
use the added comfort of alternative products.
If, and only if, they are made aware of the alternative product and MS
does a damn spiffy job of attempting to hide that fact. You can't get a
new Windows based PC manufacturer to pre-install a different browser
because MS won't allow it.
--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Randy Webb
Guest
 
Posts: n/a
#29: Nov 15 '07

re: Why should I eschew prototype.js?


Thomas 'PointedEars' Lahn said the following on 11/15/2007 5:17 AM:
Quote:
Randy Webb wrote:
Quote:
>[...] You can't get a new Windows based PC manufacturer to pre-install a
>different browser because MS won't allow it.
>
Yes, you can. M$ has lost that case already, and it is unlikely they will
try again.
Whatever you say, kiddie. It doesn't help your credibility any when you
fall prey to the "cool" stuff like referring to Microsoft as M$, it
detracts from it.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
VK
Guest
 
Posts: n/a
#30: Nov 16 '07

re: Why should I eschew prototype.js?


On Nov 16, 5:45 pm, Randy Webb <HikksNotAtH...@aol.comwrote:
Quote:
I would tell you that your intelligence level is beginning to remind me
of VK, but, I don't want to insult VK like that so I won't.
You mean that VK needs a special profoundly thought insult, not a
simplified spontaneous one? :-)
Randy Webb
Guest
 
Posts: n/a
#31: Nov 17 '07

re: Why should I eschew prototype.js?


VK said the following on 11/16/2007 5:47 PM:
Quote:
On Nov 16, 5:45 pm, Randy Webb <HikksNotAtH...@aol.comwrote:
Quote:
>I would tell you that your intelligence level is beginning to remind me
>of VK, but, I don't want to insult VK like that so I won't.
>
You mean that VK needs a special profoundly thought insult, not a
simplified spontaneous one? :-)
Geez, just when I thought you might be using your brain, you prove me wrong.

If telling PointedHead that he is acting like you is an insult to you,
that means he is acting worse than you. But now, I am not so sure anymore.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
VK
Guest
 
Posts: n/a
#32: Nov 17 '07

re: Why should I eschew prototype.js?


On Nov 17, 3:19 am, Randy Webb <HikksNotAtH...@aol.comwrote:
Quote:
If telling PointedHead that he is acting like you is an insult to you,
that means he is acting worse than you.
So is it a compliment to me? OK, but also can be read as an insult to
PointedEars (or anyone else in the future): "You are worser than VK" -
so "really ground bottom". A too complex statement for simple minds
like mine :-)
Randy Webb
Guest
 
Posts: n/a
#33: Nov 17 '07

re: Why should I eschew prototype.js?


VK said the following on 11/17/2007 7:12 AM:
Quote:
On Nov 17, 3:19 am, Randy Webb <HikksNotAtH...@aol.comwrote:
Quote:
>If telling PointedHead that he is acting like you is an insult to you,
>that means he is acting worse than you.
>
So is it a compliment to me?
Don't get your hopes up :)
Quote:
OK, but also can be read as an insult to PointedEars (or anyone else in the future):
You are beginning to grasp it.
Quote:
"You are worser than VK" - so "really ground bottom".
I am proud of you. It only took you three posts to figure that out.
Quote:
A too complex statement for simple minds like mine :-)
No comment :)

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
VK
Guest
 
Posts: n/a
#34: Nov 17 '07

re: Why should I eschew prototype.js?


<OT>
Quote:
Quote:
Quote:
If telling PointedHead that he is acting like you is an insult to you,
that means he is acting worse than you.
>
Quote:
So is it a compliment to me?
>
Don't get your hopes up :)
>
Quote:
OK, but also can be read as an insult to PointedEars (or anyone else in the future):
>
You are beginning to grasp it.
>
Quote:
"You are worser than VK" - so "really ground bottom".
>
I am proud of you. It only took you three posts to figure that out.
Oh... But from the other side "there are people worser then you, VK,
so be proud of"; but from the other side "you're getting worser than
VK, PointedEars, so try to shape up"; but also can be read as ...
Did you you ever tried for a White House PR representative? You would
pass the sort out tests for sure.
:-)

</OT>
Dr J R Stockton
Guest
 
Posts: n/a
#35: Nov 17 '07

re: Why should I eschew prototype.js?


In comp.lang.javascript message <8db60425-1b85-42ae-8744-d522680d9b2a@s1
2g2000prg.googlegroups.com>, Fri, 16 Nov 2007 12:19:49,
"dhtmlkitchen@gmail.com" <dhtmlkitchen@gmail.composted:

Lines: 253
Quote:
Quote:
>... ... ...
>
>I think the idea here is looking at the code is a good idea.
>
>There will always be bugs. (browsers are a good example) Some bugs you
>can live with, others are too unacceptable.
>
>Mistakes and misconceptions are different.
>
>Looking at code can show how the author thinks. Mistakes are one
>thing, but when a script is written with misconceptions, well, it kind
>of makes you look sideways at the script.
Please trim your quotes. See FAQ 2.3.

--
(c) John Stockton, Surrey, UK. replyYYWW merlyn demon co uk Turnpike 6.05.
Web <URL:http://www.uwasa.fi/~ts/http/tsfaq.html-Timo Salmi: Usenet Q&A.
Web <URL:http://www.merlyn.demon.co.uk/news-use.htm: about usage of News.
No Encoding. Quotes precede replies. Snip well. Write clearly. Mail no News.
Matt Kruse
Guest
 
Posts: n/a
#36: Nov 19 '07

re: Why should I eschew prototype.js?


On Nov 17, 8:47 pm, "Richard Cornford" <Rich...@litotes.demon.co.uk>
wrote:
Quote:
But where is your statement of a valid justification for the creation of
a 'library' to start with? Without that we haven't even arrived at this
question.
Some arguments in favor of a 'library' are:

1. Normalizing browser behavior, to the greatest extent possible, and
encapsulating the code required to do so into a 'standard' API
relieves the developer of the effort of considering browser quirks
every time code is to be written.

2. The code required to perform some common and repeated javascript
tasks correctly can be long and error-prone. Putting a layer over
commonly-used functionality so access to that functionality is shorter
and more concise leads to clearer code and simplifies development.

3. Not all organizations or development efforts are able to employ
javascript programmers with the level of knowledge required to write
robust, cross-browser code. Having a library of pre-written code by
someone who is much more experienced allows more inexperienced
javascript developers to perform complex tasks and develop
functionality that otherwise could not have realistically been
written.

4. A single library js file can be used on many pages throughout a web
site or webapp, and the reasonable assumption is that browsers will
cache the source. Rather than writing page-specific code (or putting
reusable functions in each page where they are required) that is
downloaded with each request, the caching of the library code can
result in faster pages.

There are caveats, of course. I don't think that using a general-
purpose library is always a good solution. Do you never believe that
it _is_ a good solution?

Under what situations do you think that using a general-purpose
library is a good choice? What kind of functionality would this
library have or not have?

Matt Kruse

Randy Webb
Guest
 
Posts: n/a
#37: Nov 25 '07

re: Why should I eschew prototype.js?


Richard Cornford said the following on 11/24/2007 11:50 AM:
Quote:
On Nov 19, 2:29 pm, Matt Kruse wrote:
Quote:
>On Nov 17, 8:47 pm, Richard Cornford wrote:
>>
Quote:
>>But where is your statement of a valid justification for the creation
>>of a 'library' to start with? Without that we haven't even arrived
>>at this question.
>>
>Some arguments in favor of a 'library' are:
>
Arguments in favour of a 'library' are things that can only be achieved
with a library and are in some sense favourable.
And what one person finds favorable another finds objectionable and the
debate never ends.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Matt Kruse
Guest
 
Posts: n/a
#38: Nov 25 '07

re: Why should I eschew prototype.js?


On Nov 24, 10:50 am, "Richard Cornford" <Rich...@litotes.demon.co.uk>
wrote:
Quote:
On Nov 19, 2:29 pm, Matt Kruse wrote:
Quote:
Some arguments in favor of a 'library' are:
Arguments in favour of a 'library' are things that can only be achieved
with a library and are in some sense favourable.
That is quite a bias to begin with. I see no reason why arguments in
favor of a library must be things that can only be achieved with a
library. Rather, a library is one way to gain the benefits that I
listed. Given a very specific context, a library may or not be the
best choice in a given situation. So I think you're starting out with
a ridiculous set of criteria with which to judge the suitability of a
'library' approach.

I think you should rather consider the possible benefits of a using a
library, then consider the cons, and decide if overall it is a good
choice. If you consider all the factors, I find it hard to believe
that you think using a library is _never_ the best choice.
Quote:
Quote:
1. Normalizing browser behavior, to the greatest extent possible,
That does not require a library.
Of course not, but using a library is one way to accomplish the goal.
Quote:
And normalizing browser behaviour to
the greatest extent possible is not a particularly good idea because any
code acting to normalise any browser behaviour that is irrelevant in
context is wistful.
Why so? If I have an internal webapp used by 10 people on a LAN, do
you really think that an extra 50k of js code on a page is of any
concern to to me? In some contexts, this may be a con. Not in all.
Quote:
You can only get a 'standard' API if that API is designed for a worst
case scenario
Not at all. "Standard" doesn't have to mean that it covers all cases.
Just that it is the API used regularly in most cases. A "standard" API
can put restrictions on its applicability, as well. There are plenty
of "standard" API's out there that don't handle every possible use
case.
Quote:
But putting a layer over commonly used complex functionality does not
require a library.
Of course not. But it is one benefit of a library.
Quote:
Quote:
3. Not all organizations or development efforts are able to
employ javascript programmers with the level of knowledge
required to write robust, cross-browser code.
Then maybe they should not be in the business of attempting to write
cross-browser code.
The lack of expertise in an area has never been much of a concern for
businesses in the past. It just means you have to be more creative in
solving the problem. If every company needed to be an expert in every
area of work they did, surely there would be few successful companies.
The fact is, sometimes you need to do the best you can with the
resources you have. To expect anything else is truly naive.
Quote:
Quote:
Having a library of pre-written code
A library is not the only means of having access to pre-written code.
Of course not, but it is one approach.
Quote:
Quote:
by someone who is much more experienced
Yet we find the libraries in use are often written by individuals who
don't know enough be actually be programming in javascript.
And yet they do so, and their work is used by thousands of people on
thousands of successful web sites around the world. If they don't know
enough to write javascript, how do you account for their success?
Surely if their work was horrible it would have been exposed by now
and the free market of information would have found a better
replacement, no?
Quote:
Quote:
4. A single library js file can be used on many pages throughout
a web site or webapp, and the reasonable assumption is that
browsers will cache the source.
[snip]
And there are no shortage of examples where people are including entire
libraries in web pages to do ridiculously trivial tasks.
Which is part of my argument - if you include jquery.js on every page,
for example, some pages may use it heavily while others use it only
for a line or two. But once it's cached, it doesn't even matter. You
can use it for just 2 lines if you want to on a page without worrying
because it doesn't require a big additional download.
Quote:
Quote:
There are caveats, of course. I don't think that using a
general- purpose library is always a good solution. Do you
never believe that it _is_ a good solution?
A good solution to what?
Anything. Is there any case you can dream up where you think, for
example, that using YUI or jQuery or Prototype is a good decision? Or
do you think it's always, universally a bad choice?
Quote:
Quote:
Under what situations do you think that using a
general-purpose library is a good choice?
Whenever such a library exactly matched the application it was to be
put to, with nothing superfluous or wasteful in context.
Why is it important to not have waste?

Matt Kruse
Closed Thread