Welcome Guest, Not a member yet? Register   Sign In
Mootools, Scriptaculous, Prototype, YUI or JQuery?
#38

[eluser]JayTee[/eluser]
I always enjoy reading threads like this because of the 'holy war' quality they often have. All-too-frustrating to the newbie is the simple '<library> is the best!' with little or no explanation as to why <library> is the best.

If I were to guess, I'd say the OP was trying to get some honest feedback as to why a particular library is preferred over another. Nick Husher had the best response with regards to the YUI; which was probably the only one I read that actually attempted to answer the OP.

I'm not trying to troll - I'm trying to convince some of you to give more thorough responses to "why" <library> is preferred.

Here's my take:

First, library size is irrelevant. I combine/gzip all of my js file when their sent to the browser. I can get the full prototype/scriptaculous library in about 13k to the user. Not too shabby.

Anyway like lay-z-cow mentioned, it's a matter of your own preference. I'm a fan of prototype's ruby-like syntax - its fun for me to use. When I compare jQuery against Prototype, there are some differences. For example, here's a function that does the same thing in both prototype and jquery - you decide which you like better.
jQuery:
Code:
//apply a click event to an element
$("id_of_element").bind("click", function(){
  alert('Clicked');
});

Prototype:
Code:
//apply a click event to an element
$("id_of_element").observe("click",function() {
  alert('Clicked');
});

You can see the difference between the two implementations of that particular method are subtle. There are other functions that are *very* different in terms of syntax; but both are able to achieve the same results.

Once again, it boils down to a syntax preference. I'd say jQuery is probably the knock-out champion for getting some good page effects/functions up and running with very little manual coding. If I'm having to code a bunch of stuff from scratch, I prefer the syntax of prototype easier to work with.


Messages In This Thread
Mootools, Scriptaculous, Prototype, YUI or JQuery? - by El Forum - 08-07-2007, 03:01 AM
Mootools, Scriptaculous, Prototype, YUI or JQuery? - by El Forum - 08-07-2007, 03:21 AM
Mootools, Scriptaculous, Prototype, YUI or JQuery? - by El Forum - 08-07-2007, 03:40 AM
Mootools, Scriptaculous, Prototype, YUI or JQuery? - by El Forum - 01-24-2008, 11:21 AM
Mootools, Scriptaculous, Prototype, YUI or JQuery? - by El Forum - 01-24-2008, 11:32 AM
Mootools, Scriptaculous, Prototype, YUI or JQuery? - by El Forum - 01-24-2008, 12:09 PM
Mootools, Scriptaculous, Prototype, YUI or JQuery? - by El Forum - 01-24-2008, 02:15 PM
Mootools, Scriptaculous, Prototype, YUI or JQuery? - by El Forum - 01-24-2008, 02:55 PM
Mootools, Scriptaculous, Prototype, YUI or JQuery? - by El Forum - 01-24-2008, 07:45 PM
Mootools, Scriptaculous, Prototype, YUI or JQuery? - by El Forum - 01-24-2008, 09:02 PM
Mootools, Scriptaculous, Prototype, YUI or JQuery? - by El Forum - 01-25-2008, 07:53 AM
Mootools, Scriptaculous, Prototype, YUI or JQuery? - by El Forum - 01-25-2008, 07:56 AM
Mootools, Scriptaculous, Prototype, YUI or JQuery? - by El Forum - 01-25-2008, 11:21 AM
Mootools, Scriptaculous, Prototype, YUI or JQuery? - by El Forum - 01-25-2008, 06:25 PM
Mootools, Scriptaculous, Prototype, YUI or JQuery? - by El Forum - 01-25-2008, 07:01 PM
Mootools, Scriptaculous, Prototype, YUI or JQuery? - by El Forum - 01-25-2008, 07:09 PM
Mootools, Scriptaculous, Prototype, YUI or JQuery? - by El Forum - 01-26-2008, 04:37 AM
Mootools, Scriptaculous, Prototype, YUI or JQuery? - by El Forum - 01-26-2008, 06:18 PM
Mootools, Scriptaculous, Prototype, YUI or JQuery? - by El Forum - 01-28-2008, 08:22 AM
Mootools, Scriptaculous, Prototype, YUI or JQuery? - by El Forum - 01-28-2008, 12:22 PM
Mootools, Scriptaculous, Prototype, YUI or JQuery? - by El Forum - 01-28-2008, 01:22 PM
Mootools, Scriptaculous, Prototype, YUI or JQuery? - by El Forum - 01-28-2008, 03:35 PM
Mootools, Scriptaculous, Prototype, YUI or JQuery? - by El Forum - 01-31-2008, 04:41 AM
Mootools, Scriptaculous, Prototype, YUI or JQuery? - by El Forum - 01-31-2008, 05:40 PM
Mootools, Scriptaculous, Prototype, YUI or JQuery? - by El Forum - 02-01-2008, 03:43 AM
Mootools, Scriptaculous, Prototype, YUI or JQuery? - by El Forum - 02-01-2008, 08:59 PM
Mootools, Scriptaculous, Prototype, YUI or JQuery? - by El Forum - 02-06-2008, 04:01 PM
Mootools, Scriptaculous, Prototype, YUI or JQuery? - by El Forum - 02-06-2008, 05:29 PM
Mootools, Scriptaculous, Prototype, YUI or JQuery? - by El Forum - 02-07-2008, 07:13 PM
Mootools, Scriptaculous, Prototype, YUI or JQuery? - by El Forum - 02-07-2008, 07:44 PM
Mootools, Scriptaculous, Prototype, YUI or JQuery? - by El Forum - 02-07-2008, 07:49 PM
Mootools, Scriptaculous, Prototype, YUI or JQuery? - by El Forum - 02-08-2008, 03:11 AM
Mootools, Scriptaculous, Prototype, YUI or JQuery? - by El Forum - 02-08-2008, 10:08 PM
Mootools, Scriptaculous, Prototype, YUI or JQuery? - by El Forum - 02-09-2008, 12:51 AM
Mootools, Scriptaculous, Prototype, YUI or JQuery? - by El Forum - 02-09-2008, 08:11 PM
Mootools, Scriptaculous, Prototype, YUI or JQuery? - by El Forum - 02-10-2008, 09:35 AM
Mootools, Scriptaculous, Prototype, YUI or JQuery? - by El Forum - 02-10-2008, 10:50 AM
Mootools, Scriptaculous, Prototype, YUI or JQuery? - by El Forum - 02-16-2008, 01:13 AM
Mootools, Scriptaculous, Prototype, YUI or JQuery? - by El Forum - 02-16-2008, 06:13 AM
Mootools, Scriptaculous, Prototype, YUI or JQuery? - by El Forum - 02-16-2008, 06:33 AM
Mootools, Scriptaculous, Prototype, YUI or JQuery? - by El Forum - 02-16-2008, 08:03 AM
Mootools, Scriptaculous, Prototype, YUI or JQuery? - by El Forum - 02-22-2008, 01:21 AM
Mootools, Scriptaculous, Prototype, YUI or JQuery? - by El Forum - 02-22-2008, 07:58 AM
Mootools, Scriptaculous, Prototype, YUI or JQuery? - by El Forum - 02-22-2008, 08:38 AM
Mootools, Scriptaculous, Prototype, YUI or JQuery? - by El Forum - 02-23-2008, 05:25 PM
Mootools, Scriptaculous, Prototype, YUI or JQuery? - by El Forum - 02-23-2008, 07:46 PM
Mootools, Scriptaculous, Prototype, YUI or JQuery? - by El Forum - 02-23-2008, 08:40 PM
Mootools, Scriptaculous, Prototype, YUI or JQuery? - by El Forum - 02-24-2008, 10:21 PM
Mootools, Scriptaculous, Prototype, YUI or JQuery? - by El Forum - 02-25-2008, 07:52 AM
Mootools, Scriptaculous, Prototype, YUI or JQuery? - by El Forum - 03-07-2008, 09:49 PM
Mootools, Scriptaculous, Prototype, YUI or JQuery? - by El Forum - 03-07-2008, 10:01 PM
Mootools, Scriptaculous, Prototype, YUI or JQuery? - by El Forum - 03-07-2008, 11:43 PM
Mootools, Scriptaculous, Prototype, YUI or JQuery? - by El Forum - 03-09-2008, 08:16 AM
Mootools, Scriptaculous, Prototype, YUI or JQuery? - by El Forum - 03-09-2008, 10:46 AM
Mootools, Scriptaculous, Prototype, YUI or JQuery? - by El Forum - 04-07-2008, 07:49 PM
Mootools, Scriptaculous, Prototype, YUI or JQuery? - by El Forum - 04-08-2008, 04:14 AM



Theme © iAndrew 2016 - Forum software by © MyBB