News for hackers. Stuff that matters.
Re:jRails - jQuery on Rails by mattjaynes on Thursday November 22, 2007 @03:50AM (#82698)
Looks great. I've admired jQuery from afar since watching John Resig's talk on it a few months ago (links below).

One thing I'd love to ask those of you who have used both js libraries: Other than the file size difference, what do you see as the main advantages of jQuery over prototype/scriptaculous?

John Resig Part I: http://video.yahoo.com/video/play?vid=410472

John Resig Part II: http://video.yahoo.com/video/play?vid=412541

Re:jRails - jQuery on Rails by simonw on Thursday November 22, 2007 @05:36AM (#82712)
For me it's all down to philosophy. Prototype adds a bunch of global variables and extends loads of built-in ojbects. That's fine, unless you ever want to include code that has a different idea about how any of those extensionss should work (like mooTools, which I also avoid on philosophical grounds). jQuery adds just one global variable (called jQuery) along with a revertible alias (the $ symbol). That pretty much guarantees jQuery will work flawlessly with any other code.
Re:jRails - jQuery on Rails by staticshock on Thursday November 22, 2007 @01:25PM (#82786)
newer versions of jquery also allow you to clean up the one global variable it adds, afaik, moving it to a location of your choosing. it's very clean.