BT

Facilitating the Spread of Knowledge and Innovation in Professional Software Development

Write for InfoQ

Topics

Choose your language

InfoQ Homepage News Cool things you can do with Groovy

Cool things you can do with Groovy

Bookmarks
With dynamic languages playing a role in JDK 6, the "Cool things you can do with Groovy" session was aimed at show casing the features of the Groovy language that can help make developers more productive. Groovy experts Guillaume Laforge, Dierk Konig, and Guillaume Alleon presented.

An introduction of the standard features (enhanced language features, closures, regular expression support, GString, collection, etc.) was presented, before discussing the more productivity-enhancing features, most notable of which were:

Groovy Builders & GPath: No longer do you need to interact with complex XPath APIs to access data.  With GPath XML documents act as first class objects, allowing you to access data by calling properties.  Using builders, you work in the reverse direction, using objects and braces to create XML files. Along with XML builders there are Swing and ANT builders.

Annotation Support:  With the release of 1.1 later this year, Groovy will be the only dynamic language that supports annotations.  This is an important milestone as it will allow bidirectional data access.  A demonstration using Google Juice and TestNG showed how easy a test case using injected mock data can be developed.

Live Objects: The Groovy shell feature is not only a simple way to explore the language, but can be used to interactively explore the current Java runtime environment.  When embedded into an application, runtime configurations can be explored and modified in real-time, allowing you to check assumptions and test out theories before making permanent changes in the code.

Dynamic Applications: Compiling Groovy into Java class files and then using the static class files in your applications is one option, but there are a couple of other options available to developers.  The most compelling is to use the GroovyClassloader - with this option the Groovy scripts are compiled at runtime as they are requested, allowing source files to be changed and used without restarting the application.

Charles Ditzel has posted the PPT for download with the presentors permission.

Rate this Article

Adoption
Style

Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Community comments

  • ppt cannot be opened ..

    by Debasish Ghosh,

    Your message is awaiting moderation. Thank you for participating in the discussion.

    The ppt available in the download link cannot be opened by Microsoft Powerpoint.

  • Re: ppt cannot be opened ..

    by David Skelly,

    Your message is awaiting moderation. Thank you for participating in the discussion.

    Works fine for me.

  • Re: ppt cannot be opened ..

    by Debasish Ghosh,

    Your message is awaiting moderation. Thank you for participating in the discussion.

    now it works .. one of those Microsoft Office service packs had to be installed ..

  • Google presentation

    by Thom Nichols,

    Your message is awaiting moderation. Thank you for participating in the discussion.

    Guillaume also did a presentation for Google which is now on Google Video. The sound is a bit messed up, but most of it is there.

  • Nice presentation

    by serge ----,

    Your message is awaiting moderation. Thank you for participating in the discussion.

    Great little presentation, I have really high hopes for Groovy & Grails. Thanks for posting this Infoq. I noticed that jDeveloper was not on the list for tooling support for Groovy, for some reason I thought that they had previously stated that they would provide future support for this in there IDE.

  • JDeveloper plugin

    by Guillaume Laforge,

    Your message is awaiting moderation. Thank you for participating in the discussion.

    Actually, there's a JDeveloper plugin, but it's still embryonic. Hence why we focused more on showing the Eclipse plugin and the Intellij IDEA plugin.

  • Grails Book

    by serge ----,

    Your message is awaiting moderation. Thank you for participating in the discussion.

    I also noticed that there’s a Grails book from Addison Wesley? I searched for it on Amazon but can't find it? Is this book out?

  • Re: Grails Book

    by Lance Shaw,

    Your message is awaiting moderation. Thank you for participating in the discussion.

    The book I have is "The Definitive Guide to Grails" by Apress. I think I got it from Amazon...

  • Re: Grails Book

    by Lance Shaw,

    Your message is awaiting moderation. Thank you for participating in the discussion.

    teach me to reply before looking at the presentation.... It looks like it isn't in English... I wonder if that is why it doesn't show up.

  • got that one

    by serge ----,

    Your message is awaiting moderation. Thank you for participating in the discussion.

    I got the book you mentioned, but another book would be a welcome addition .. hopefully someone will send us the link to the book.

  • Re: Grails Book

    by Alex Popescu,

    Your message is awaiting moderation. Thank you for participating in the discussion.

    InfoQ is also providing a free downloadable Grails book.

    ./alex
    --
    .w( the_mindstorm )p.
    ________________________
    Alexandru Popescu
    Senior Software Eng.
    InfoQ TechLead&CoFounder

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

BT