aspose file tools*
The moose likes Groovy and the fly likes Groovy - another OO script Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Languages » Groovy
Bookmark "Groovy - another OO script" Watch "Groovy - another OO script" New topic
Author

Groovy - another OO script

Prabhu Venkatachalam
Ranch Hand

Joined: Nov 16, 2005
Posts: 502

why we need one more OO script? what is advantage of Groovy over Python,RUBY etc...?

In what kind project we can use Groovy?


Thanks.


Prabhu Venkatachalam<br />SCJP 1.4,SCWCD 1.4<br />prabhu.venkatachalam@gmail.com
Arno Reper
Ranch Hand

Joined: Mar 14, 2006
Posts: 286
Maybe one of is advantage is that you can use it right into your java code...but so you can with JRuby, Jython or JHaskell, maybe its easier?
Does anyone tests the java Mustang (6.0) release? I wouldd like to install it but the examens are coming and I want to be sure its not to risky

arno


The man who makes no mistakes does not usually make anything<br /> <br />>>> SCJP 5.0 >> SCJD B&S <<< In progress
Dierk König
author
Ranch Hand

Joined: Nov 01, 2006
Posts: 43
The main premise of Groovy is that it is both
- feature rich
- and Java friendly
which makes it unique in the landscape or OO languages for the JVM.

ciao
Dierk
Bruce Jin
Ranch Hand

Joined: Sep 20, 2001
Posts: 671
The main premise of Groovy is that it is both
- feature rich


What are main features that Groovy has and Java does not?

Thanks!
[ December 12, 2006: Message edited by: Bruce Jin ]

BJ - SCJP and SCWCD
We love Java programming. It is contagious, very cool, and lot of fun. - Peter Coad, Java Design

Crazy Bikes created by m-Power
Prabhu Venkatachalam
Ranch Hand

Joined: Nov 16, 2005
Posts: 502

Thanks for your reply.

Is Groovy finally converted into Java Byte code and run in JVM?
Tug Wilson
Ranch Hand

Joined: Dec 12, 2006
Posts: 33
Yes Groovy is compiled to bytecode.
Scott Hickey
Greenhorn

Joined: Dec 12, 2006
Posts: 5
Speaking from my experience of using Groovy as part of a large Java J2EE project, there were several factors that made Groovy stand out.

The component being targeted by a language other than Java involved alot of complicated math and data set manipulation. Like Ruby, Groovy has really nice language support for manipulating collections of object. Unlike many of the other languages including Ruby,Python and Rexx, Groovy naturally understands Java classes and can be precompiled into Java byte code so deployment is a piece of cake. To the corporate infrastructure folks, it's just another Java jar.

One area that Groovy stood out from ALL of the other languages we looked at (besides Rexx) was the native BigDecimal support. Since accuracy is important in any business application that deals with money, this was a big plus. Using a float or double would not be appropriate for any of the decimal attributes we use. All of the other languages we looked required explicit calls to create BigDecimal objects.

Groovy has many other great features but these were the ones that were significant given the business domain and the need to integrate into a Java environment.
Prabhu Venkatachalam
Ranch Hand

Joined: Nov 16, 2005
Posts: 502

Thanks Scott Hickey.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Groovy - another OO script