• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Need Your Opinions On JavaScript Libraries

 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I know a few of you use JavaScript libraries. For those of you that do use one:

What library did you choose to use in everyday development and what was the major reason you picked it over the others.

If you were "forced" to use it, would you still use it? What do you like or hate about it?

Thanks,
Eric
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64717
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
jQuery, for many reasons, but primarily because of its power, and the manner in which it emphasizes Unobtrusive JavaScript and clean page design.
 
Hussein Baghdadi
clojure forum advocate
Bartender
Posts: 3479
Clojure Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
jQuery.
Beside of what Bear said, jQuery enjoys a lot of plugins (not to mention Bear's book on jQuery )
 
nimo frey
Ranch Hand
Posts: 580
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
..and what about prototype?
out of date?
not powerfull enough?
not much plugins than jquery?
not faster and more stable than jquery?

I miss the facts:-)
[ November 25, 2008: Message edited by: nimo frey ]
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Prototype. I like the ease of use of its Ajax.* methods (which is all I use it for). If I needed DOM features I'd evaluate jQuery in addition to Prototype, but the need never came up, so I'm happy with it.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64717
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by nimo frey:
..and what about prototype?
Prior to jQuery, I used to like Prototype. My enthusiasm has waned considerably.

We used Prototype in a web application with a complicated GUI that sported many levels of nested iframes to achieve its goals. In this environment, Prototype increasingly kept getting in the way more than it would help. The intrusive nature of Prototype (it modifies the DOM elements and JavaScript objects when it loads) started leading to weird and hard-to-debug problems in the cross-frame environment (really weird errors like "Prototype is not defined" within Prototype's own code) and made it hard to use other JavaScript libraries, as well as the JavaScript that we'd write ourselves.

When a tool starts creating more work than it saves, it's time to move on.

Originally posted by nimo frey:
out of date?
Many people think so. I've heard more than one person refer to it as a dinosaur.
not powerfull enough?
Too intrusive (see above).
not much plugins than jquery?
jQuery was designed for plugins. Prototype, not so much. And no library has the plugin community that jQuery has.
not faster and more stable than jquery?
They're both fast, but see above for my assessment on stability.
[ November 25, 2008: Message edited by: Bear Bibeault ]
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One of the thing I have to research a lot with the plug-ins/widgets is Accessibility. Where I work, it is a BIG thing and I tend to find a bunch of toolkits out there do not cut it.

Try to use a screen reader on some of the widgets out there and it is like listen to finger nails on a chalkboard.

Some of the widgets in JQuery make me feel like some kid wanted to become famous and wrote a useless piece of code. Others are well done. It is like picking your poison.

With other libraries that have widgets built in, you sort of feel safer that it was tested in a more professional fashion, but you are sort of handcuffed to using it.

To me the biggest thing is the core. I like JQuery's core and prototypes has seemed to have improved since the last time I used it. JQuery and Prototypes XHR code sort of scares me in with things I know what happened in production and their code does not cover those safety precautions that I tend to take.

Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic