BT

InfoQ Homepage Presentations Groovy: Best Practices Developed From Distributed Polyglot Programming

The next QCon is in London, Mar 4 - 6, 2019. Save an extra £75.00 with INFOQ75!

Groovy: Best Practices Developed From Distributed Polyglot Programming

Bookmarks

Bio

Jonathan Felch has worked as a programmer, a project manager, an enterprise architect, a high-tech venture capitalist, a desk quant for quantitative trading strategies for companies like Credit Suisse, Lehman Brothers, Paloma Partners, and NASDAQ. Currently, he is Quantitative Portfolio Manager at E. H. Smith Jacobs.

About the conference

QCon is a conference that is organized by the community, for the community.The result is a high quality conference experience where a tremendous amount of attention and investment has gone into having the best content on the most important topics presented by the leaders in our community.QCon is designed with the technical depth and enterprise focus of interest to technical team leads, architects, and project managers.

Recorded at:

Jul 07, 2010

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

  • About Groovy Gotchas

    by Sargis Harutyunyan /

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

    I tried for Groovy 1.7.3(GroovyConsole) and have following:

    class Name {
    String id = "Sargis"
    }

    def name = new Name()
    println name.id
    println name.getId()
    println name['id']

    def c = 1
    println c.getClass().getName()

    def b = 1.1
    println b.getClass().getName()

    def a = 1.1d
    println a.getClass().getName()

    ============================================================================
    Output


    groovy> class Name {
    groovy> String id = "Sargis"
    groovy> }
    groovy> def name = new Name()
    groovy> println name.id
    groovy> println name.getId()
    groovy> println name['id']
    groovy> def c = 1
    groovy> println c.getClass().getName()
    groovy> def b = 1.1
    groovy> println b.getClass().getName()
    groovy> def a = 1.1d
    groovy> println a.getClass().getName()

    Sargis
    Sargis
    Sargis
    java.lang.Integer
    java.math.BigDecimal
    java.lang.Double


    seems everything is ok

  • Avoid list.each{}, prefer for (a in list)

    by Olivier Gourment /

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

    Good tip, thanks Jonathan!

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

Is your profile up-to-date? Please take a moment to review and update.

Note: If updating/changing your email, a validation request will be sent

Company name:
Company role:
Company size:
Country/Zone:
State/Province/Region:
You will be sent an email to validate the new email address. This pop-up will close itself in a few moments.