Why jruby?

What are your reasons for choosing jruby rather than ruby for
developing applications with RoR?
I’ve choosed jruby because I’ve found it much simpler to setup and
upgrade, you need only the .tar or .zip file and extract it on pc.
The deployment is very simply too, you have to create the .war file
and deploy it on tomcat or glassfish or whatever servlet container and
that’s all.
Also about all the gems are supported by jruby and, not least, it run
on the jvm then it has the jvm thread support.
I think jruby is really a good choice.

In the first place, it’s only about I have to develop an application and
web-application for java ecosystem in really tight schedule. And my
experience about ROR and Ruby can complete the mission with Jruby, not
groovy or grails and not possible with Java.

In addition. I have found that I can make a project run in both Java
ecosystem and ruby ecosystem. That’s mean Ruby/Rails for most system.
It’s great thing.

More benefit is Jruby is faster in most area except regex.

Drawback:
jruby start time is much more slow. (then I always dev on 1.9.2 and
regularly test it in Jruby)
Some native gem may not work directly. Wish it’s will better and better
over time.

I vote for it.

Thank to Ian, Nick and friendly and active communities
This book save me a lot of time.

On 19 December 2010 19:06, Pinit A. [email protected]
wrote:

In the first place, it’s only about I have to develop an application and
web-application for java ecosystem in really tight schedule. And my
experience about ROR and Ruby can complete the mission with Jruby, not
groovy or grails and not possible with Java.

I can understand why not java but…why not grails?
I have developed some applications with grails and I found it very
interesting.

I speak only for me, but I much prefer the ruby syntax over Groovy.
Too,
it seems quite a bit faster overall although I understand Groovy has
made
some headway on this recently.

On 19 December 2010 19:54, Justin C. [email protected] wrote:

Test driven development a lot better in RoR than in Grails. You can
accomplish a lot more test coverage with less code, and tests don’t take as
long to run because you don’t have to start up the servlet container.

For test ok but I prefer grails domain driven approach to developing,
another thing is that grails create by yourself database constraints
and join tables in many to many relationship, while in RoR I have to
create them by myself.

Test driven development a lot better in RoR than in Grails. You can
accomplish a lot more test coverage with less code, and tests don’t take
as
long to run because you don’t have to start up the servlet container.

Justin

On Sun, Dec 19, 2010 at 12:46 PM, Michael C. <

Sorry. I’m not mean to attack Grails. Should this thread dedicate for
Jruby ? or we should change subject to Jruby compare to Grails. one
more interesting subject that I would like to learn from all of you.

I have to maintain this Grails project for at least another 3 years.

Sincerely :slight_smile:

On 19 December 2010 20:14, Pinit A. [email protected]
wrote:

Sorry. I’m not mean to attack Grails. Should this thread dedicate for
Jruby ? or we should subhect change to Jruby compare to Grails. one
more interesting subject that I would like to learn from all of you.

I have to maintain this Grails project for at least another 3 years.

Sincerely :slight_smile:

In grails lists, english and italian there are some threads comparing
grails and RoR.
It should be interesting comparing those in a RoR list too.
I develop in grails and in RoR, I love both but lately I’ve found a
little more agile developing in grails.

Msan M. wrote in post #969423:

On 19 December 2010 19:06, Pinit A. [email protected]
wrote:

In the first place, it’s only about I have to develop an application and
web-application for java ecosystem in really tight schedule. And my
experience about ROR and Ruby can complete the mission with Jruby, not
groovy or grails and not possible with Java.

I can understand why not java but…why not grails?
I have developed some applications with grails and I found it very
interesting.

I myself alone have to full-fill off-schedule critical software
components. My possible choice is only Ruby(Jruby) in this case.

I am working with Rails more than a two year and I am the one who chose
Grails for my team of 7 members to complete the project with Grails.
It’s interesting I agree. But I have zero java knowledge also Grails.

By watching them I have found that Groovy/Grails still different from
Ruby/Rails. and Grails rely on many java components sa. hibenate, log4j
, spring-security etc. which I and my team are not capability to
config/custom their behavior to meet project requirement with only
groovy, plugins also.

Finally, I have no choice for myself. It’s take some time to learn
Groovy/Grails syntax.

Addition I may choose JRuby over Grails for next project. Because I can
develop a single team that capable to develop scripting application,
Web-application or even Compiled Mac Application (MacRuby) on most
system that java and ruby does.

Thanks all now i have the idea that jruby is really nice


Check out http://www.moneytoplist.com/ residual affiliate programs and
get recurring money.

Msan M. wrote in post #969434:

In grails lists, english and italian there are some threads comparing
grails and RoR.
It should be interesting comparing those in a RoR list too.
I develop in grails and in RoR, I love both but lately I’ve found a
little more agile developing in grails.

Create. Like Justin siad about Testing. My team have fail to do TDD. I’m
trying to convince them after new year long vacation, to put their
effort to bring back at least full unit test. Any suggestion on this
will save my life.

I have show them RSpec for unit test and Watir+Cucumber+Webrat for
integration and acceptant test. All of them (SA) said it’s too hard to
do like that in Grails !!

JUnit & GEP are only things I know about Grails test. Any Mock helper or
other tools. ?

On 28 December 2010 20:57, Black Mt [email protected] wrote:

Thanks all now i have the idea that jruby is really nice

Great, have you tried jruby?