InfoQ

InfoQ

News

My Bookmarks

Login or Register to enable bookmarks for unlimited time.

The content has been bookmarked!

There was an error bookmarking this content! Please retry.

Cool things you can do with Groovy

Posted by Ian Roughley on May 10, 2007

Sections
Development
Topics
Java ,
Dynamic Languages
Tags
Groovy ,
Java One
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.

11 comments

Watch Thread Reply

ppt cannot be opened .. by Debasish Ghosh Posted
Re: ppt cannot be opened .. by David Skelly Posted
Re: ppt cannot be opened .. by Debasish Ghosh Posted
Google presentation by Thom Nichols Posted
Nice presentation by serge boulay Posted
JDeveloper plugin by Guillaume Laforge Posted
Grails Book by serge boulay Posted
Re: Grails Book by Lance Shaw Posted
Re: Grails Book by Lance Shaw Posted
Re: Grails Book by Alex Popescu Posted
got that one by serge boulay Posted
  1. Back to top

    ppt cannot be opened ..

    by Debasish Ghosh

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

  2. Back to top

    Re: ppt cannot be opened ..

    by David Skelly

    Works fine for me.

  3. Back to top

    Re: ppt cannot be opened ..

    by Debasish Ghosh

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

  4. Back to top

    Google presentation

    by Thom Nichols

    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.

  5. Back to top

    Nice presentation

    by serge boulay

    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.

  6. Back to top

    JDeveloper plugin

    by Guillaume Laforge

    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.

  7. Back to top

    Grails Book

    by serge boulay

    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?

  8. Back to top

    Re: Grails Book

    by Lance Shaw

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

  9. Back to top

    Re: Grails Book

    by Lance Shaw

    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.

  10. Back to top

    got that one

    by serge boulay

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

  11. Back to top

    Re: Grails Book

    by Alex Popescu

    InfoQ is also providing a free downloadable Grails book.

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

Educational Content

New-age Transactional Systems - Not Your Grandpa's OLTP

John Hugg discusses high volume transaction processing applications with high and low frequency profiles, and how VoltDB can be used for that purpose.

Cool Code

Kevlin Henney examines code samples to see what can be learned from them starting from the premise that one won’t write great code unless he knows how to read it.

Collaboration: At the Extremities of Extreme

Jason Ayers share the observations he made watching a team of developers collaborating in real time on the same code base, pushing XP, pair programming and continuous integration to their extremes.

Yesod Web Framework

Michael Snoyman presents Yesod, a web framework written in Haskell and containing a web server, templating, ORM, libraries (templating, gravatar, etc.).

Transactions without Transactions

Richard Kreuter and Kyle Banker on how to avoid classical RDBMS transactional systems by using compensation mechanisms, transactional messaging or transactional procedures.

Attila Szegedi on JVM and GC Performance Tuning at Twitter

Attila Szegedi talks about performance tuning Java and Scala programs at Twitter: how to approach GC problems, the importance of asynchronous I/O, when to use MySQL/Cassandra/Redis, and much more.

10 tips on how to prevent business value risk

One category of risk that project teams need to ensure they address is business value failure – delivering a product that fails to provide value for the business investor.

Interview: Software Systems Architecture: Working With Stakeholders Using Viewpoints and Perspectives

InfoQ spoke to the authors of Software Systems Architecture on a couple of new topics, the System Context viewpoint and Agile, which have been added to the second edition.