I haven't been forthcoming?
Corrrect.
Do you seriously think that having cross browser knowledge
"captured and consolidated in the *minds* of individuals"
is useful to anyone other than those individuals?
It is of more use to others than not having it.
I think many people would correctly infer my intent was
to determine if the knowledge had been consolidated into a
form that would be of use to others - a web site, book,
library, etc.
And it hasn't. All the information is availed but not consolidated.
Are you suggesting people interview these individuals?
Why not? What do you think you are doing at the moment?
I don't know why you feel I haven't been forthcoming.
The ratio of questions asked to answers given.
After getting the impression that many people on this
newsgroup felt that no existing JavaScript library was
worthwhile to use,
Try to remember what it is you have been shown here. It is almost
trivial to pick a library and find plenty of examples of code that has
been written where if the individual who wrote that code had understood
what they were doing they never would have written it (assuming that
they are sane). We are not talking subjective judgments or questions of
design or style here but instead specific things that technical
knowledge alone would have prevented. For example, in an earlier post I
showed an example from dojo where the HTML mark-up for a SCRIPT element
had been split up using a number of concatenation operations. As soon as
someone understands why they might be doing this (and I mean really
understands, not jut believes some old wife's tale, or slavishly
reproduces someone else's mystical incantation) they will do it
differently.
Thus when you see these things being done in the way it is done in dojo
(and many other places) it is reasonable to infer that the individual
responsible did not understand what they were doing, and so did not have
the relevant knowledge. And in the case of a community effort, like
dojo, the existence of such code implies that the most knowledgeable
person involved does not have this knowledge.
Should it be surprising that when observing that the people writing
theses libraries lack basic browser scripting knowledge that there
should then be extreme reticence is recommending that anyone use the
products of such self-evidently ignorant authors?
There is also the matter of considering what it may have been that these
authors would have produced if they had taken the time to learn browser
scripting before prematurely assuming themselves qualified to write
there libraries. The question of what changes to the designs of these
libraries would have followed from gaining the additional experience of
scripting web browsers. This is particularly pertinent when you observe
that the people who do have this experience are not creating large scale
general purpose and instead have totally different notions of what is
appropriate in browser script design.
I thought I'd start with a base case and see if there was
any library (in active use was implied) that was worthwhile
to use in any context.
To which the answer was always going to be 'none', because javascript
design decisions should be context driven, which would not be the case
if they could be context independent.
Getting an answer
to that question has been like pulling teeth!
Only because you insist that that question should have an answer when
the rational response is to ask you to qualify the context (which is
what has happened).
Maybe you got the impression I was playing games here,
but I honestly wanted to see if any of the regulars here
felt any library was worthwhile.
But you did not explain what there libraries were supposed to be
worthwhile for, even though you were asked.
Yes, you and David keep reiterating that "no one says you
have to write it all yourself", and yet you also won't
mention any worthwhile libraries to use.
Didn't I put quite a lot of effort into explaining that those are not
the only two alternatives?
So, let me ask you, if one doesn't need to "write it
all themselves" - where do you suggest people obtain the
code that they haven't written?
If you spend your time looking for libraries the results will either be
your finding libraries or your not finding them. My design strategy
would have me looking for independent task-specific modules and finding
those in many places, including the archives for this group.
There are certainly people who have stated they felt the
only reasonable course of action was to write all
JavaScript code themselves,
No there are not.
so maybe by "nobody" you meant you and a few others.
No, it means nobody sane.
So isn't it understandable that you would not get recommendations
without first stating the context.
But since my impression was that this group felt all
existing JavaScript libraries were not good enough
to use (that statement has been made multiple times),
There are certainly very good reasons for question the fitness of many
available libraries for any task. You will recall that I have
demonstrated in this thread that dojo includes code that falls into the
mystical incantation style of programming, and clear evidence of its
authors either not understanding the basics of javascript or not being
rational.
I simply wanted to know if you felt any libraries were
good enough in any context.
And I have proposed two contexts for which particular libraries would be
well suited. And indeed it is the very design flaws in Prototype.js that
make it well suited in the context of wanting to have the user's
computer run hot.
And by library, I think a reasonable person would discount
a few lines of code whipped up for the purpose of this
discussion - I was referring to something on a public web
site currently in existence.
Wow, finally! So, for some contexts, you feel YUI is a
worthwhile library to use.
Well yes. YUI was designed as an application framework for a search
engine provider, so if you are a search engine provider looking for an
application framework it could be 100% suited to your context.
Yes, there are many competently written single task/context libraries
that are entirely fit for the single task/context for which they were
written.
I take it that you feel both
Prototype and JQuery are not worthwhile.
I think Prototype.js has an inherently stupid design. JQuery is not code
that I have really looked at, though the snippets of it posted here do
not suggest competence on the part of its author.
Is YUI the only one that is
in your opinion?
That is not what I said, or even implied.
What I was trying to achieve was to determine a set of JavaScript
libraries that might be worth investing time in researching.
Of the libraries discussed here the only one that is worth researching
is YUI, unless you want examples of code written by people who don't
really understand what they are doing. But YUI is not a panacea. The
further you move away from the context for which it was designed the
less suited it will be to that context.
Not really, that last sentence was the first time you asked for
"libraries that might be worth investing time in researching", which is
a very different criteria from any previously mentioned.
but my choice of information source was
seriously misguided.
This certainly is not the place to ask questions if you insist on
getting only pre-defined answers.
Richard.