Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

groovy or ruby

 
avihai marchiano
Ranch Hand
Posts: 342
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey,

i want to learn one of them can you ref to good advice.

Thank you
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Grab a book or search for online tutorials. If your are undecided which to learn, go through a couple of tutorials on each and even try a Rails and Grails tutorial. Then get a book for the one you liked the best.
 
avihai marchiano
Ranch Hand
Posts: 342
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i mean to advice - of what do you think is more important to learn.
 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not sure why trying Rails and Grails should help you decide whether to learn Groovy or Ruby. But Peter is right in that you should give both languages a run through and see which you like. As far as what is important, they both are. I prefer groovy because it was a very easy transition from Java.
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Gregg Bolinger wrote:Not sure why trying Rails and Grails should help you decide whether to learn Groovy or Ruby.


I threw that in because if you are going to write web apps you might want to know what you will have to go through to do so for each language.
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The two languages are incredibly similar. If you learn either one, transitioning to the other isn't very difficult.

I was doing Groovy professionally last year and this year I've been doing Ruby.

Probably the best way to decide which one to focus on is to see if either one has a user group in your city. It helps to really learn how to use the language if you can make friends with the people that can give you pointers in person.
 
chris webster
Bartender
Posts: 2407
32
Linux Oracle Postgres Database Python Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
avihai marchiano wrote:i mean to advice - of what do you think is more important to learn.


Depends what you want to do with them. If you think you might want to take advantage of Java technology (Spring, Hibernate, etc) on the JVM/JEE platform, then Groovy and Grails are probably the way to go. Actually, you might like to use Grails as your way into Groovy, as it's a fun and easy way to start using Groovy while also playing with JEE web apps etc.
 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
chris webster wrote:
avihai marchiano wrote:i mean to advice - of what do you think is more important to learn.


Depends what you want to do with them. If you think you might want to take advantage of Java technology (Spring, Hibernate, etc) on the JVM/JEE platform, then Groovy and Grails are probably the way to go. Actually, you might like to use Grails as your way into Groovy, as it's a fun and easy way to start using Groovy while also playing with JEE web apps etc.


Well, technically he could use JRuby and achieve the same thing. So it is literally whatever you prefer.
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Gregg Bolinger wrote:Well, technically he could use JRuby and achieve the same thing. So it is literally whatever you prefer.

Totally. Both languages have JVM support and allow interaction with other Java code.
 
Freddy Wong
Ranch Hand
Posts: 959
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I started of learning Ruby, but at the end I decided to learn Groovy because I found it easier to transition from Java.
 
Dave Klein
author
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Marc Peabody wrote:
Gregg Bolinger wrote:Well, technically he could use JRuby and achieve the same thing. So it is literally whatever you prefer.

Totally. Both languages have JVM support and allow interaction with other Java code.

There are varying degrees of integration between Java and other JVM languages. I recall hearing Charles Nutter say something to the effect that their first goal with JRuby was to be the best Ruby implementation. Seamless interop with Java was, at best, a secondary concern. Whereas, Groovy had that as a primary goal from the beginning. I haven't used JRuby but from others that I've heard from it appears that it's not nearly as easy to integrate with Java as Groovy is.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic