[Rails-core] Re: Default JavaScript library

2010-05-27 Thread Neeraj Singh
This is that api I propose. If it is agreed upon by core team then a patch can easily be created. # create a demo app with prototype javascript # in this way current behavior is not changed > rails init demo # create a demo app with latest stable jquery # http://github.com/rails/jquery-ujs should

[Rails-core] Re: Default JavaScript library

2010-05-26 Thread gezope
It is a very good idea! I'm a beginner, and still have some problems with setting up Rails with a workable database... so it won't be fun, if a beginner has to pay attention also for choosing the better JS library - while maybe he doesn't have any idea about Js at all! Anyway: jQuery is much better

Re: [Rails-core] Re: Default JavaScript library

2010-05-25 Thread Amos King
Prototype looks more like Ruby, but I like jQuery better. On Tue, May 25, 2010 at 2:23 PM, Karl wrote: > +1 for jQuery. > > It's tough to get people to switch, so I think you should have a > choice. Ship with both perhaps. > > But I think the syntax and philosophy of jQuery is more similar to

[Rails-core] Re: Default JavaScript library

2010-05-25 Thread Karl
+1 for jQuery. It's tough to get people to switch, so I think you should have a choice. Ship with both perhaps. But I think the syntax and philosophy of jQuery is more similar to Ruby than Protoype is similar to Ruby. I think it would be easier for new people to pick up jQuery than Prototype,

Re: [Rails-core] Re: Default JavaScript library

2010-05-25 Thread Daniel Schierbeck
I think that picking a single default that works for the majority, while retaining the possibility of opting out is the way to go. Having a command line switch that toggles different implementations may be nice, but it also incurs a much bigger maintenance work, as the sheer number of combinations

Re: [Rails-core] Re: Default JavaScript library

2010-05-25 Thread Paul Sponagl
-/+1 yes - it should be easy to select, but one has to differentiate between first time users and heavy users. first time users might not be able to choose between various types of orm, jslib, testlib ... and so they will choose the default. i think well thought defaults are important as they

Re: [Rails-core] Re: Default JavaScript library

2010-05-25 Thread Mateo Murphy
On 25-May-10, at 10:54 AM, Allen Madsen wrote: I don't particularly care which is the default, but I think it should be easy to pick either. Maybe a flag on the rails command like -d for the database. You could do something like: rails myapp -j=jquery Allen Madsen http://www.allenmadsen.com

Re: [Rails-core] Re: Default JavaScript library

2010-05-25 Thread Allen Madsen
I don't particularly care which is the default, but I think it should be easy to pick either. Maybe a flag on the rails command like -d for the database. You could do something like: rails myapp -j=jquery Allen Madsen http://www.allenmadsen.com On Mon, May 24, 2010 at 6:10 PM, Yehuda Katz wro

Re: [Rails-core] Re: Default JavaScript library

2010-05-24 Thread Yehuda Katz
Just to be clear, I don't think there's any doubt that jQuery has far more users, both in the Rails space and in the general space. So I don't think that determining that jQuery is used more by Rails 3 users will result in changing the defaults. I'd like to hear from other Rails core team members

Re: [Rails-core] Re: Default JavaScript library

2010-05-24 Thread Norman Clarke
I suppose once 3.0 is released and it's just as easy to use jQuery with Rails as Prototype, it should be easy to determine which one people are using more often and then make that the default for 3.1. I'm also pretty convinced jQuery will come out far ahead. On Mon, May 24, 2010 at 18:27, Ryan Big

Re: [Rails-core] Re: Default JavaScript library

2010-05-24 Thread Amol Hatwar
+1 jQuery On May 25, 2010, at 2:57 AM, Ryan Bigg wrote: > Death to prototype! Long live jQuery! > > Ryan Bigg / Radar > > On 25/05/2010, at 6:17, Rodrigo Rosenfeld Rosas wrote: > >> Em 24-05-2010 16:00, Jeff escreveu: >>> On May 24, 10:54 am, Daniel Schierbeck >>> wrote: >>> Hi there, so

Re: [Rails-core] Re: Default JavaScript library

2010-05-24 Thread Ryan Bigg
Death to prototype! Long live jQuery! Ryan Bigg / Radar On 25/05/2010, at 6:17, Rodrigo Rosenfeld Rosas wrote: Em 24-05-2010 16:00, Jeff escreveu: On May 24, 10:54 am, Daniel Schierbeck wrote: Hi there, sorry to bring this topic up yet again, but I feel that some time has passed, and

Re: [Rails-core] Re: Default JavaScript library

2010-05-24 Thread Rodrigo Rosenfeld Rosas
Em 24-05-2010 16:00, Jeff escreveu: On May 24, 10:54 am, Daniel Schierbeck wrote: Hi there, sorry to bring this topic up yet again, but I feel that some time has passed, and that the landscape has changed. Currently, Prototype is the default option in Rails. While switching to jQuery is pre

[Rails-core] Re: Default JavaScript library

2010-05-24 Thread Jeff
On May 24, 10:54 am, Daniel Schierbeck wrote: > Hi there, sorry to bring this topic up yet again, but I feel that some > time has passed, and that the landscape has changed. > > Currently, Prototype is the default option in Rails. While switching > to jQuery is pretty easy, it's not as easy as not