aspose file tools*
The moose likes Groovy and the fly likes what is Groovy? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Languages » Groovy
Bookmark "what is Groovy?" Watch "what is Groovy?" New topic
Author

what is Groovy?

Grega Leskovšek
Ranch Hand

Joined: Nov 13, 2008
Posts: 56
Is Groovy a virtual machine, a compiler or separated new subversion of Java or all together before said?
And why should I use it?


--Always, Grega from Peace refuge
Kenneth A. Kousen
gunslinger & author
Ranch Hand

Joined: Sep 18, 2002
Posts: 89
    
    5
Groovy is a programming language that compiles to byte codes that are interpreted by the Java virtual machine. It's the evolutionary next step for Java -- it vastly simplifies Java coding, and goes beyond standard Java to things Java doesn't normally do. Of all the non-Java languages that work on the JVM, Groovy is the easiest to learn and has the tightest integration with existing Java classes.

The message board this week is full of examples of when and where to use Groovy.


Kenneth A. Kousen, Ph.D. (assorted certs), President, Kousen IT, Inc.
Author of Making Java Groovy - http://www.kousenit.com
Burk Hufnagel
Ranch Hand

Joined: Oct 01, 2001
Posts: 814
    
    3
Grega Leskovšek wrote:And why should I use it?

Grega,
If you want to give it a try, I think using it for automated testing is a great idea because it's not production code so there's less pressure while you're still learning, and you get useful test showing your code works as expected. If you use Spock (a Groovy based testing framework compatible with JUnit) then you can do some Behavior Driven Development which can be used to show the business folks that their wishes are being implemented too.

Burk


SCJP, SCJD, SCEA 5 "Any sufficiently analyzed magic is indistinguishable from science!" Agatha Heterodyne (Girl Genius)
 
Don't get me started about those stupid light bulbs.
 
subject: what is Groovy?