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, but both are very easy to
get started with.
Karl
On May 24, 8:54 am, Daniel Schierbeck <daniel.schierb...@gmail.com>
wrote:
üdv,
Zoli
On May 25, 5:28 pm, Paul Sponagl <p...@sponagl.de> wrote:
> -/+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 will lay the foundation of first projects and will bind first time users to at least a few months to the libs.
>
> Am 25.05.2010 um 17:12 schrieb 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
>
> > +1
>
> > I think ideally, there should be -o and -t options for picking your orm and test framework at creation time as well
>
> > --
> > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group.
> > To post to this group, send email to rubyonra...@googlegroups.com.
> > To unsubscribe from this group, send email to rubyonrails-co...@googlegroups.com.
> > For more options, visit this group athttp://groups.google.com/group/rubyonrails-core?hl=en.
> 1. It is my feeling that the vast majority of the Rails community use
> jQuery exclusively.
This report from RailsLab says jRails is used by about 16% of RPM users:
It could be the case that some switch to jQuery without jRails, but I
wouldn't expect that to be a significant percent. In any case, a 16%
in that particular sample does not seem to support that perception.
-- fxn
PS: I you match gems and plugins, numbers say Mislav is the king :).
At least to me it seems like the problem of having Prototype as
default affects mostly to new people. Advanced users will just install
jRails and use jQuery. New people might find themselves thinking they
nave to use Prototype to work with Rails, or other harmful situations.
I believe that if the default lib is the most used everywhere these
negative situations will happen less often.
Hope it helps.
--
{ :sent_from => "iPhone" }
> --
> You received this message because you are subscribed to the Google
> Groups "Ruby on Rails: Core" group.
> To post to this group, send email to rubyonrails-
> co...@googlegroups.com.
In short jRails usage != jQuery usage
> --
> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group.
> To post to this group, send email to rubyonra...@googlegroups.com.
> To unsubscribe from this group, send email to rubyonrails-co...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
>
>
--
> Projects using jQuery dont necessarily use jRails so I dont think that 16%
> is a real indicator of the usage of jQuery in Rails projects.
As I said, I don't expect that to be a significant percent.
> At least to me it seems like the problem of having Prototype as default
> affects mostly to new people. Advanced users will just install jRails and
> use jQuery. New people might find themselves thinking they nave to use
> Prototype to work with Rails, or other harmful situations. I believe that if
> the default lib is the most used everywhere these negative situations will
> happen less often.
That's a different story. What the 16% tells in my view is that you
can't include (1) among the reasons for advocating a switch in the
default.
> At every talk I give at a conference, I ask whether people use jQuery
> in their Rails apps. In every case, close to 100% of the room raises
> their hands.
In all fairness, I think that's a bit misleading question. I raised my hand when you asked it in Frozen Rails, but I would also have raised my hand if you'd had asked the same question about Prototype.
//jarkko
--
Jarkko Laine
http://jlaine.net
http://dotherightthing.com
http://odesign.fi
Check out my latest book, Unobtrusive Prototype, fresh off the Peepcode oven:
http://peepcode.com/products/unobtrusive-prototype-js
Also, to be clear, people who don't write JavaScript at all but just
use the Rails helpers would be unaffected by a change in defaults. I
would consider them N/As rather than "prototype users"
> The idea that 16% of Rails users use jQuery is divorced from reality.
But you are talking perceptions, and the sample talks numbers.
Of course 16% has to be taken with some margins, but you can't deny it
makes difficult to claim that the vast majority of Rails developers
use jQuery exclusively, which was the claim in (1). That is a strong
claim! (1 was originally stated as a feeling not a fact, that's fine).
If the percent had been 84% then there would be no doubt about it,
right? But < 20%... dubious.
But it turns out the 84% seems to support that the vast majority are
using Prototype, no matter which is our termometer.
Hey, I am not saying people can't advocate jQuery because of a series
of reasons. I am only raising a flag about this claim about the
perceived user base.
> The idea that 16% of Rails users use jQuery is divorced from reality.
> I can devise some experiments to prove that, but I have seen no
> evidence in my travels of a huge amount of people using anything else.
> I freely agree that people use Protoype, MooTools and Dojo. The number
> of people who do so, in my estimation, is quite small.
I think in reality, most rails developers end up using both; prototype
because it's the default, and jquery because of the large library of
plugins. I do think that supports a move to using jquery as default,
despite preferring prototype myself.
# 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 have a jquery-versions.txt
file which lists all the stable releases of jquery. That file will be
referred
# on runtime and the latest stable version will be found which would
be 1.4.2 as of this writing
> rails init demo -j=jquery
# create a demo app with jquery version 1.4.1
> rails init demo -j=jquery:1.4.1
# create a demo app with mootools version 1.2.4
> rails init demo -j=mootools:1.2.4
Once this kind of api is in place then I don't care what is the
default JavaScript library that ships with rails.
Thoughts?
> > For more options, visit this group athttp://groups.google.com/group/rubyonrails-core?hl=en.
I completely disagree, just because people don't use jrails, doesn't
mean they're a prototype user. I generally bring in jQuery manually
and delete all the prototype cruft from my projects, but I then write
my own jQuery code to do specifically what I want, ignoring Rails
helpers.
You can't assume that 16% jRails = 16% jQuery - it would be true if
that was the only way of using jQuery with Rails, but it so blatantly
isn't.
Cheers,
Andy
This is why I stated that once Rails 3 comes out, it should be easier
to get some "real" numbers on this, since presumably it will be just
as easy for developers to use jQuery as it currently is to use
Prototype, and those users
who actively program in Javascript rather than just using the helpers
will consciously decide to use one or the other.
I would suggest it's a bit late to change the default option at this
time, and if the decision is left for 3.1 it can easily be based at
least in part on real-world numbers that nobody disputes.
> I completely disagree, just because people don't use jrails, doesn't
> mean they're a prototype user. I generally bring in jQuery manually
> and delete all the prototype cruft from my projects, but I then write
> my own jQuery code to do specifically what I want, ignoring Rails
> helpers.
I know!
The problem is to gauge which percent does that represent. Do you
claim that there's a 50% of people using jQuery exclusively without
jRails to be able to sum up say 70%?
My hypothesis is that that percent is small, and this is of course
speculation. But speculation based on the fact that generally speaking
one prefers to keep the helpers if the cost is as cheap as installing
jRails.
I am not claiming 16% is the exact figure, this is a sample, there's
that other variable. What I say is that the numbers do not seem to
**support**, to bring some evidence in favor of (1), on the contrary.
The JavaScript helpers in Rails 2.3 were rather ugly, from a jQuery point
of view, which probably explains why not that many people felt like using
jRails.
Daniel
> Xavier, I for one never use jRails -- in fact, neither do most of the
> rails devs i know. We do, however, use jQuery.
>
> The JavaScript helpers in Rails 2.3 were rather ugly, from a jQuery point
> of view, which probably explains why not that many people felt like using
> jRails.
>
>
> Daniel
Seconded. We use jQuery for almost all of our projects around here, but don't bother with jRails because of the ugly factor.
Ryan Bigg / Radar
> --
> You received this message because you are subscribed to the Google
> Groups "Ruby on Rails: Core" group.
> To post to this group, send email to rubyonrails-
> co...@googlegroups.com.
Cheers,
Daniel
>> To post to this group, send email to rubyonra...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> rubyonrails-co...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/rubyonrails-core?hl=en.
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Core" group.
> To post to this group, send email to rubyonra...@googlegroups.com.
I'm a big fan of jQuery too but maybe at this point it would be nice
to take an issue off the core team's table. At the end of the day
Rails 3 is still going to work great no matter what the default is.
>> To post to this group, send email to rubyonra...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> rubyonrails-co...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/rubyonrails-core?hl=en.
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Core" group.
> To post to this group, send email to rubyonra...@googlegroups.com.
Why? SQLite3 was made the default database in 2.0.2 and the world
didn't stop. It's a change that affects people creating new Rails
applications - not ones that have already been created.
I'm a big fan of jQuery too but maybe at this point it would be nice
to take an issue off the core team's table. At the end of the day
Rails 3 is still going to work great no matter what the default is.
Daniel
On the other hand, stats about what people prefer *now* suggest that's
clearly jQuery:
http://survey.hamptoncatlin.com/survey/stats
I think this number is worth taking into account.