Matt,

First off, a warning that this response doesn't address any of your specific
questions; I'm still semi-new to jQuery and thus I'll leave the big
questions for others. However, if you don't read anymore past this, just
count this as a vote of confidence for the jQuery community!

Before I forget, nice work on JavascriptElements.com. I like your advice in
your Best Practices: "Avoid prototype.js". That got a chuckle out of me,
because I too just recently decided to find a JS framework for many of the
reasons that you are now; I was having to spend too much time reinventing
the wheel with every implementation. Even if I had a preexisting solution,
or I found one, 9 times out of 10 it was already outdated by today's
environment. I would end up spending more time actually trying to modify the
code than actually implementing it, which of course is a huge time-waster.

I checked out many frameworks, and I couldn't believe that prototype had no
documentation! I thought I was just "missing it", or "didn't get it", but I
had neither the time nor desire to seek for it so I quickly dropped
prototype. The other frameworks I found were mostly bloated, filled will
endless features when all I wanted was some basic functionality, with the
option to add-on to that if needed, and there's where jQuery fit the bill.

I've been a developer for several years and have been exposed to many
different development communities in that time; usually forums, IRC, mailing
lists, etc., and I will say that the jQuery is without a doubt the best
community I've found for those seeking _help_. The answer may actually be in
the API reference, but the people here seem to understand that perhaps the
user simply didn't understand the API, or that they need some prodding in
the right direction, or an extended example, and the community here is more
than willing to provide that to users (and usually the theory behind it)
WITHOUT making them feel like idiots. Honestly, it seems like many
communities thrive on the elitist attitude, and seem to think that by
driving off users by making them feel dumb will somehow improve their
codebase. But I digress.

If you do decide to adopt jQuery, here's some sites that I'm fond that makes
the API....shall I say fun? :)

http://visualjquery.com/
http://jquery.bassistance.de/api-browser/
http://joern.jquery.com/api-draft/cat.xml


On 2/12/07, Matt Kruse <[EMAIL PROTECTED]> wrote:


I've been working with JS since it was created, and I've written a lot of
my
own libs and utilities. I'm now taking a serious look at existing
frameworks
simply because the effort of writing, debugging, and documenting my own
code
is too time consuming.

Of the more mature and robust frameworks available, I think jQuery and
MooTools offer the kind of approach that fits well with my thinking. There
are differences between the two, but they are very similar in many
respects.

I'm leaning towards standardizing on jQuery because it packs a lot of
functionality into a small package, is well documented, has a professional
feel to it, is growing rather than shrinking, doesn't try to shove a
class-based OO approach into JS where it doesn't belong, and has some
great
plugins and effects available for it.

I am evaluating jQuery for two purposes:
1) To be used in a number of webapp projects by different teams, with
costs
in the millions. I don't want to pick a framework that will be gone and
unsupported tomorrow, or one that moderately experienced js programmers
wouldn't be able to pick up quickly.
2) My own use, to ease my pain. I'd like to take things like my fast and
robust table sorting (and filtering, paging, etc) routines and map them
into
the jQuery namespace as plugins (I tried to comment on the zebra striping
showdown and show my version but I think I was moderated out!). I have my
own library that I've been working with/on for quite a while (even
registered JavascriptElements.com) and I considered branching parts of
jQuery into my own version. But, I'm sick of re-inventing the wheel -
jQuery
seems adequately round. I want to re-invent the steering wheel instead.

With these things in mind, I have some general questions about the design
decisions in jQuery:

1) There seems to be a lot of emphasis on using selectors and
pseudo-selectors to access everything. It makes code short and simple, but
is it really the most efficient?

2) Why encapsulate elements in a jQuery object rather than extending
HTMLElement? Using the latter, you gain the ability to use built-in
methods
and properties of the elements, and you only have to worry about hacking
it
to work for IE (but hopefully not IE8!).

3) Some of the functions in jQuery seem to be "magic" in that they do and
return a lot of different things depending on how they are called. This
seems very Perl-ish to me, and that's one of the things that ended up
making
Perl so insanely incomprehensible to many. Why overload so many methods,
rather than giving them their own understandable names?

4) Any chance of a jQuery-lite, without all the css selector logic? Or is
that kind of Sonny without Cher?

5) What is the max compressed file size you want to stay under? Will
plugins
and other extensions be pulled into the main source file at some point? Or
is the goal to keep the current core functionality as-is and depend on
plugins for any extended functionality? Is there any concern that the
framework will become fragmented (again, like Perl) so developers never
know
which set of plugins (modules) they need to do the job?

6) Finally, can anyone comment on introducing jQuery into a team of web
developers with low to moderate javascript experience, building webapps or
web sites that could run into the millions of dollars? Is jQuery robust
enough and easy enough to deploy that it's an easy win?

I tried to ask similar comparison questions on the MooTools forum, but the
developers and community there seem to have a bit of an attitude problem:
http://forum.mootools.net/topic.php?id=1607&replies=12

I appreciate the tone and professionalism of the jQuery site and
community.
It's a big plus.

Thanks!

--
View this message in context:
http://www.nabble.com/jQuery-Design-Decisions--Comparison-to-MooTools--tf3218550.html#a8938358
Sent from the JQuery mailing list archive at Nabble.com.


_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to