Groovy-Annotation Closures

Thursday, March 4th, 2010

After experimenting with Groovy’s AST Browser and noticing that Groovy’s grammar allows closures as annotation values, “pniederw” coded an AST transformation that allows you to pass closures as annotation values. Check out how to empower annotations with Groovy closures.

Groovy’s GPars Library, For Concurrent Programming

Tuesday, February 23rd, 2010

There’s a nice article over at dzone.com on the latest about Groovy’s GPars library from its project lead, as well as overviews of some of its features like the Asynchronizer class, Actors, and the concurrent collection processor Parallelizer.

Best 8 Groovy Tutorial List

Thursday, February 4th, 2010

Groovy is a dynamic programming language for the JVM that combines Java’s enterprise capabilities with productivity features like closures, builders, dynamic typing and meta-programming. It can either be interpreted or compiled and you can add new methods to classes dynamically at run time, with greater flexibility than standard Java offers. There seems to be an increasing interest in Groovy so I looked around for some quality Groovy tutorials, and here are a few that make the grade. You might want to bookmark this article, as I will actively maintain this list of tutorials, as I do with Digital Media Minute’s well-received ruby on rails tutorial listings.

  • The best place to start is codehaus.org, which has links to all things Groovy, including a very comprehensive set of Groovy tutorials. You’ll also find a download for the latest stable version, user guides developer and testing guides, cookbook examples of Groovy, and an advanced usage guide.
  • This Groovy tutorial by Lars Bogle is quite comprehensive, covering installation, your first project and some example usage. Groovy classes objects and methods, loops and datatypes are covered in the introductory chapters, then Vogel moves on to a section on Grails, Groovy classes in Java and using the language via the command line. This is one of the longer and more professional Groovy tutorials on the Internet at the moment.
  • Over at skill-guru.com you will find a series of task-specific Groovy and Grails tutorials, for instance on topics like Groovy closures, calling a stored procedure, and creating and running your first application in Grails.
  • Guillaume Laforge at the Springsource blog has an excellent long tutorial on building your first Groovy-powered Google app engine web application.
  • At IBM developerWorks, Scott Davis has written several Grails and Groovy tutorials in the form of modules on topics like meta-programming with closures, ExpandoMetaClass and categories, and building a Grails application.
  • NetBeans has a brief tutorial on getting started with Groovy in NetBeans IDE.
  • Chris Judd and Jim Shingler have a very lengthy slideshare presentation on Groovy and Grails taken from CodeMash 2009.
  • Here’s another Groovy tutorial from IBM’s developerWorks on exactly how you can incorporate the language into your Java programming.
  • Leaving PHP For Grails And Groovy

    Tuesday, January 19th, 2010

    Interesting post over at pmcoder.com about one software developer’s reasons for deciding to leave PHP in favor of Grails and Groovy.