DISQUS

Emad Ibrahim: The Best JavaScript Library | Emad Ibrahim

  • Duncan Smart · 1 year ago
    "the icing on the cake was the free hosting of the JavaScript libraries" see: http://code.google.com/apis/ajaxlibs/
  • Mladen Mihajlovic · 1 year ago
    Another factor is the size of the libraries - between JQuery and Yahoo, JQuery wins...
  • Dan Hulton · 1 year ago
    Why not use YUI and jQuery both? That's what I do. YUI's widgets are simply the best out there, and jQuery's selectors are the tops. Combine the two and get jQuery's beautiful syntax with YUI's fantastic widgets. Heck, since YUI is so modular in terms of code files, you don't even need to bother loading all the extra parts of YUI that you'll be using jQuery for.

    BTW, big benefit of jQuery over Prototype - jQuery leaves object prototypes alone, making it easier to mix and match other script libraries.
  • Bob · 7 months ago
    totally agree,prototype is too intrusive,meaning if you use it,you can't play others meanwhile.
  • Ross Illingworth · 1 year ago
    I totally agree with your choice of library, I do think YUI produces very good code.

    However, I also think too many people fail to undersand the power or limitations of Javasacript itself. eg: outside of the libraries, when do you see good functional code?

    JSTR is the only tool I have found that actually benchmarks javascript snippets and allows you to optimize you code properly, or to choose the correct code for the purpose.

    Do you know anything else like it?
  • cosmo7 · 1 year ago
    If you like YUI you'll like Extjs (http://extjs.com).

    It plays nice with jQuery too.
  • tamimi · 3 months ago
    The problem with Extjs, is that is not totally free, which make the developers try to avoid it
  • Emad Ibrahim · 1 year ago
    @Duncan: thanks for the tip - I didn't know. I wonder how fast do they get new versions to Google code for hosting???

    @Mladen: jQuery minified and zipped is 16kb. And according to this chart http://ajaxian.com/archives/yui-setting-the-rec... YUI will be at 8.9kb. without animation and drang and drop and 18.4kb with them. So size is not that big of a deal - specially if it is hosted for free :)

    @Dan: I might actually do that. I love jQuery's syntax too much to completely give it up. I am glad to hear that you are already doing that and not having problems.

    @Ross: Never heard of JSTR but I will check it out. thanks.
  • vlad · 1 year ago
    if good documentation is important to you, don't use dojo.
  • Pat Nakajima · 1 year ago
    Prototype includes quite a nice unit testing framework actually: http://github.com/sstephenson/prototype/tree/ma.... There's a runner written in Ruby that allows you to automate the running of your test suite in different browsers.
  • Peter Bengtsson · 1 year ago
    Execution speed is important for me which, last time I checked, I think jQuery wins at.
  • Emad Ibrahim · 1 year ago
    @peter: Do you have any links or reference to support your claim that jQuery is faster?
  • H.Guliyev · 1 year ago
    http://mootools.net/slickspeed/
    At least, This shows that YUi is the slowest. That is the biggest problem I have with it.
  • eibrahim · 1 year ago
    wow... that is a really cool... Thanks for the link.

    I think using both jQuery and YUI is the way to go. I can use jQuery for
    all my manual script writing and just limit YUI to User Interface stuff -
    which is where it really shines.
  • dave · 1 year ago
    not evaluating GWT was your second mistake. choosing asp.net was your first.
  • KiLVaiDeN · 1 year ago
    YUI is very powerful, but I don't find the documentation "that good". In fact, it's quite troublesome for some functions to browse the api and find out what the "OData" parameter is... Well after some practice you find out quite quickly, but it's not crystal clear. YUI has a great support for grids and such which is quite exciting too.

    I like the prototype documentation and syntax, and jQuery is a clean library that's for sure. Extjs is a good option too, but it's not free for commercial use.

    In the end of the day, I'd still prefer YUI because it has a great support in the person of Yahoo, and it works pretty well.

    K
  • Patrickz · 1 year ago
    Where is Ext-js? :D
  • kevin · 1 year ago
    Framework with beautiful widgets. (best i have seen so far) -> mix jquery with extjs widgets and you got a perfect library.
  • Binoy · 11 months ago
    Extjs Extjs Extjs
  • Rod · 10 months ago
    Ext JS is my favorite. I've tried them all, JQuery, YUI, Dojo (ugh - I really tried, just couldn't get my head around it) Its a coders lib, not a designers snippet library.
  • jhuni · 10 months ago
    I agree about YUI I actually use it because it is good for modular code and separating the user interface from the application logic (MVC) none of the other libraries seem to have that advantage.
  • Eric Miraglia · 10 months ago
    Great discussion and many interesting points made in the comments. I would add only the following regarding the Slickspeed measurements: Be careful of conflating Slickspeed results with overall library performance. Slickspeed measures the performance of a selector engine against a specific DOM structure (relatively long, not too deep). Your results will vary if your DOM structure varies. More importantly, element selection via the selector engine is just one small aspect of library performance. Slickspeed tells you how Selector engines perform against a specific task; it does not give you insights into the overall performance of library code.
  • malcolm coles · 10 months ago
    With no javascript experience whatsoever, I managed to get the jquery slider panel working on my mum's website (http://www.sabc.co.uk/st-albans-office.html) - so I don't know about the others but Jquery gets my vote!
  • Kavih · 8 months ago
    This site seems to use both jQuery and ExtJS: http://www.browsernotincluded.com They built a desktop app that allows 3rd party developers to build web modules in javascript. jQuery is used to parse the DOM and ExtJS is used for the user interfaces. Pretty cool IMO.
  • mondongo · 6 months ago
    try EXT JS !
  • steve · 6 months ago
    I disagree that YUI is beautiful. In fact I think all of the libraries are overly replicated with bloated code and long names. Their widgets are not efficient, intuitive, innovative and they are barely optimised. Many don't even provide for xhtml validity. The reason you like Jquery is because it cleans out the garbage that the equivalent - YUI creates. Jquery is incredibly optimised and so easy to understand when looking at the code. So Jquery doesn't have all of the features of say - scriptaculous, or dojo, and thank god YUI. A good javascript programmer can extract the code from other libraries and use them with Jquery. As for prototype, I think it paved the way forward as a major stepping stone in javascript libraries, but jquery is twice as optimised and has taken the essential functionality from it, and left out all the dangerous functionality like - currying for example. Prototype provides a whole load of features that I would never want to use and never want to have to troubleshoot in someone elses code. Much like php, which provides an incredible amount of features that would scare a .net developer through poor programmatic practice.
  • eibrahim · 6 months ago
    My JavaScript knowledge has increased significantly since I wrote this post
    and I can tell you that now I only use jQuery and I don't need YUI for their
    UI anymore.
    Plus jQuery has significantly improved its UI-related stuff just check the
    gallery at www.jqueryui.com
  • Shady · 3 months ago
    Nevertheless, you can hotlink jquery from google CDN directly and use it in your applications.
  • rkssaravanan12 · 2 months ago
    hi ,

    My point of view JQUERY is the best javascript library for the dynamic website. The jquery has syntax ,easy to learn and good manual.
  • Jeff · 3 weeks ago
    jquery, dojo, and prototype also have free hosting of the javascript libraries through a cdn (content delivery network for faster speed).