This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
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


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Languages » Ruby
Bookmark "Ruby or Groovy" Watch "Ruby or Groovy" New topic
Author

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
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
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
author
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