File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

what is Groovy?

 
Grega Leskovšek
Ranch Hand
Posts: 76
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is Groovy a virtual machine, a compiler or separated new subversion of Java or all together before said?
And why should I use it?
 
Kenneth A. Kousen
gunslinger & author
Ranch Hand
Posts: 100
5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Burk Hufnagel
Ranch Hand
Posts: 814
3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic