Groovy and Grails

  • 8,564 views
Uploaded on

A lightning talk on Groovy and Grails by Jean Barmash …

A lightning talk on Groovy and Grails by Jean Barmash

More in: Technology , Education
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
8,564
On Slideshare
0
From Embeds
0
Number of Embeds
6

Actions

Shares
Downloads
12
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. Groovy & Grails Jean Barmash CTO, EnergyScoreCards www.meetup.com/grails
  • 2. Java:String[] names = new String[] {"Rod", "Carlos", "Chris"}for (String it : names) if (it.length() <= 4) System.out.println(it);Groovy:String[] names = [ "Rod", "Carlos", "Chris" ]for (String it : names) if (it.length() <= 4) System.out.println(it);Idiomatic Groovy:names = ["Rod", "Carlos", "Chris"]names.grep { it.size() <= 4 }.each{ println it }
  • 3. Groovy LanguageDynamic Language for the JVMNative Integration with Java, cross-compilationAlmost-zero learning curve can rename .java to .groovyBacked by VMWare / SpringSourceOpen Source, Apache LicenseUnfortunate Name
  • 4. Major FeaturesLess CeremonyClosuresNative collection syntax / processingMany Features for DSLAbstract Syntax Tree Transformation E.g. @Immutable, @SingletonTrivial XML / HTML / JSON ProcessingFunDid I say easy integration with Java?
  • 5. Grails (www.grails.org)High Productivity Web FrameworkConvention over configurationBuilt on solid Java technologies Spring, Hibernate, QuartzGORM - Works with Hibernate, JPA, and NoSQL DbsPlugins - 699 plugins & growing (including clojure, scala)IDE Support2.0 In NovemberBacked by SpringSource / VMWareAwesome CommunityUnfortunate Name
  • 6. Who Uses Groovy / GrailsNetflix (Internally)Sky.comLinkedInConde Naste (Wired)Example - clickOnero in Latin America 1.5 million users, 80k concurrent users, 8 tomcats, 5 Linux boxes, 1 mysql, 1 terracotta, 1 rabbitmqEnergyScoreCards :-)
  • 7. Other Groovy ProjectsSpock Testing FrameworkGEB Functional Testing FrameworkGPARS - Concurrency FrameworkGradle - convention over configuration build frameworkGriffon - Swing FrameworkSome Other projects that offer Groovy support o Spring, Mule, NanoContainer, ServiceMix, Magnolia CMS, eXo, neo4j, Jenkins, o Many more at http://groovy.codehaus.org/Related +Projects
  • 8. ReferencesGroovy Home Page http://groovy.codehaus.org/Related Projects http://groovy.codehaus.org/Related+ProjectsBlogs - http://groovyblogs.org/Groovy Magazine - http://www.groovymag.comGrails - www.grails.orgGrails Plugins - http://grails.org/plugin/category/allSpringSource - www.springsource.comGroovy / Grails Support http://www.springsource.com/support/groovyandgrailssupportConferences - Gr8Conf, SpringOne2GX SpringOne2GX - http://www.springone2gx.com/ Gr8Conf - http://www.gr8conf.org/NYC Groovy/Grails Meetup - http://www.meetup.com/grails/