wood burning stoves 2.0
The moose likes Ruby and the fly likes Ruby or Groovy Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Languages » Ruby
Bookmark "Ruby or Groovy" Watch "Ruby or Groovy" New topic

Ruby or Groovy

Amit Wadhwaa
Ranch Hand

Joined: Feb 15, 2007
Posts: 74
What are the major differences between the two in terms of capabilities of the two?

SCJP 5 94%<br /><a href="http://amit-wadhwa.blogspot.com/" target="_blank" rel="nofollow">My Blog</a>
Lasse Koskela

Joined: Jan 23, 2002
Posts: 11962
Well, to me Ruby as a language seems nicer and more powerful than Groovy. Having said that, Groovy can be easier for a Java developer to learn since a lot of its constructs are almost like valid Java code.

Both Ruby (through JRuby) and Groovy can be run on a JVM and thus integrate with Java libraries so there's not that much of a difference, although integrating Groovy to a Java application is probably slightly easier.

Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Prabhakar Chaganti
Ranch Hand

Joined: Nov 30, 2004
Posts: 50
I feel Ruby is a much more powerful language than Groovy. Groovy has a lot of language features which seem to be similar to Groovy and Python, and it has great integration with JAVA itself. But writing things in Groovy just doesnt feel very natural to me. With Jruby now you can have the same access to the JVM, while harnessing the full power and expressiveness of Ruby.

Packt Author Page (http://www.packtpub.com/author_view_profile/id/120)
I agree. Here's the link: http://aspose.com/file-tools
subject: Ruby or Groovy
It's not a secret anymore!