David said:
David Mark wrote: [...]
If you are going to bet on a horse, I'd definitely pick this one. I'm
now involved and as for the other contenders:
I remember I was quite surprised when Higgins showed me a link to your
patch in their Trac about a month ago
I'm quite surprised he showed you a link a month ago. Hadn't really
done anything at that point.
I was looking at their DOM methods back then (shortly after its latest
release) and saw sniffing used in almost every single method. It was
used much more extensively than say, in Prototype or jQuery, which I'm
sure you know better than me. But that's besides the point.
It's a large group effort. I've only gotten involved recently.
This is when I asked Higgins why they do it so carelessly and he pointed
me to your patch in "feature detection" branch, saying that they are
working on it <
http://twitter.com/phiggins/status/1428053875>
Sure enough.
I personally don't agree with YUI dropping Safari 2 from browser table,
but overall it does make sense.
I don't agree with any sort of browser table.
Which desktop browsers did they forget
to include? Or are you talking about an approach? AFAIK, their widgets
degrade gracefully in non-supporting browsers, just like Dojo ones.
A document cannot degrade gracefully without proper feature testing.
Like most libraries, frameworks, etc. they only test in a microscopic
subset of browsers and configurations. And what are they testing?
Whether the UA parse will spot "MSIE" reliably?
Looking at Dojo
<
http://www.dojotoolkit.org/support/faq/what-browsers-does-dojo-support>
I see that they don't support Safari 2.x either (which Prototype, for
example, still supports entirely), nor do they support "older" (<9.6)
Opera (again, Prototype supports 9.2+). I don't want to start a pissing
contest about browser support of Prototype vs Dojo vs YUI. It's just
that Safari 3.x and Opera 9.6 stand out (as well as, say, IE5.5, but
then almost none of major libraries support that one).
I've talked to them about that. Dojo has been demonstrated to work in
environments other than those on the official list. I see no reason
why it can't work on - for example - Opera 8. Certainly it will when
I am done with it.
We already had a conversation about Prototype. It works without problems
in local intranets and limited environments. Nothing more, nothing less.
May appear to work fleetingly. Things change. Those scripts will be
left behind.
Mootools probably does so as well, but we are talking about general web
here, so those don't apply.
That one is a non-entity (strictly for kids.)
But what will I be having fun hacking then?
Well, to each his own. If by hacking you mean improving code, why
don't you come on in for the big win?
Why apples to oranges? Both provide core methods as well as widgets
based on those methods.
jQuery is a monolithic, interdependent mess. Dojo is modular. And
jQuery's widgets don't count anyway. Would you use widgets built by
jQuery users, knowing they rely on code from John Resig?
Both provide ways to skin those widgets.
That's marketing speak. And how many seconds would I have to spend
reading jQuery CSS before recoiling in horror?
Both
are backed by corporate companies.
No corporation in its right mind would bet on jQuery. And if you mean
MS, you misunderstand what is going on there. They are not "backing"
anything, but leeching onto a name. If you buy an expensive
development tool from them, they'll gladly give you a free jQuery. It
doesn't even work with the Intellisense crap (you have to use an
alternate version of jQuery.)
Both have developers working on them
full time.
LOL. Somebody is working full time on *that*. What the hell are they
doing all day, printing T-shirts?
Both have been out for quite a while. Both are modular.
Yes and no. jQuery is not modular at all. I don't care how much crap
they pile on top of it, the core script is the antithesis of
modularity. The other thing is that Dojo supports interchangeability
as it has an offline build process. You can guess what I am going to
do with that (if not, see the old CWR threads.)
Both
pay attention to a11n and l18n.
Pay attention? I've never seen a competent rendition of anything in
jQuery. Are you saying they nailed that stuff?
Both have good ideas in them and both
make mistakes like sniffing or using overly-heavy abstractions.
No, the problem is that jQuery started as a bad idea and Dojo started
as a good one. There's no going back at this point.
As for sniffing, everybody did it until I started going off about it.
If you want to go back to the beginning of this movement, you have to
find the Flash/JS article on A List Apart where I commented that
sniffing was a very bad idea. Know what the author said? It's good
enough for jQuery and Dojo. Two years later, here we are. Turns out
it wasn't good enough. Wonder if he changed *his* script?
And thanks to Thomas for posting examples of jQuery's incessant
sniffing (around the fall of 2007.) That really kick-started the
effort. And to that weasel Matt Kruse for making such a spectacular
fool of himself the whole time (his first response was that jQuery did
not use browser sniffing, his last was just an infantile tantrum.)
Both are
documented nicely.
Hell no. The jQuery docs are mostly fiction.
Both are unit tested. Even both have members in
ECMAScript comitee (Crockford from YUI and Kris Zyp from Dojo)
Aren't we comparing frameworks (or toolkits if you prefer) like Dojo
to the aforementioned oranges (e.g. jQuery?)
What's different about them?
You want to know what the real difference was/is? John Resig and co.
can't read. That pretty much sums it up. They had the answers all
along, so there can be no excuses for their present failings.
Just because.
Interesting. I've heard same things about Dojo, including something
about using non-standard attributes extensively. Again, I can't judge
either, since I haven't reviewed them thoroughly.
The widgets do use custom attributes, but you don't have to use them
in your markup.
I'll definitely look at Dojo when I get a chance. Perhaps someone else
will chime in as well.
And I'll look at YUI (again) when I have a chance, but it will all be
academic by the end of the summer.