Copyright 2009 SpringSource. Copying, publishing or distributing without express written permission is prohibited. Groovy and Grails in Google App Engine Benefit from a Java-like dynamic language to be more productive on App Engine Guillaume Laforge Head of Groovy Development
In this session, Guillaume Laforge, Groovy project manager, will walk you through a rapid introduction to Groovy, to get you up-to-speed with this popular JVM language. Then, he will guide you throughout demos on how to build some Web 2.0 mashups in a few lines of Groovy code, as well as how to deploy Grails application in the cloud. He'll then close the session showing you various ways you can leverage Groovy to even further streamline and simplify the development of App Engine applications, thanks to several tips and tricks only a dynamic language like Groovy can provide.
Out of the session, you'll know: - enough of Groovy to get you started with the language - how to setup and configure a new App Engine application to use Groovy - how to write your first Groovy applications - how to deploy Grails applications on App Engine - how you can leverage the Groovy dynamic language to simplify the development of App Engine Groovy-powered applications
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Copyright 2009 SpringSource. Copying, publishing or distributing without express written permission is prohibited.
Groovy and Grailsin Google App Engine
Benefit from a Java-like dynamic language to be more productive on App Engine
Guillaume Laforge
Head of Groovy Development
2Copyright 2009 SpringSource. Copying, publishing or distributing without express written permission is prohibited.
• Groovy Project Manager
• JSR-241 Spec Lead
• Head of Groovy Developmentat SpringSource
• Initiator of the Grails framework
• Co-author of Groovy in Action
• Speaker: JavaOne, QCon, JavaZone, Sun TechDays, Devoxx, The Spring Experience, JAX, Dynamic Language World, IJTC, and more...
Guillaume Laforge
2
3Copyright 2008 SpringSource. Copying, publishing or distributing without express written permission is prohibited.
• Groovy overview
–Features at a glance
–Groovlets
–Groovy templates
• Grails overview
–The Grails stack
–The App Engine plugin
• Summary
• Q&A
3
4Copyright 2009 SpringSource. Copying, publishing or distributing without express written permission is prohibited.
A few words about Groovy
• Groovy is a dynamic language for the JVM
–with a Meta Object Protocol
–compiles directly to bytecode, seamless Java interop
• Open Source ASL 2 project hosted at Codehaus
• Relaxed grammar derived from Java 5
–Java 5 features out-of-the-box: annotations, generics, static imports, enums, varargs...
–borrowed good ideas from Ruby, Python, Smalltalk
– flat learning curve for Java developers
4
5Copyright 2009 SpringSource. Copying, publishing or distributing without express written permission is prohibited.
Features at a glance
• Fully Object-Oriented
• Joint compiler: seamless Java integration
• Closures: reusable/assignable code blocks
• Properties: no more getters / setters
• Optional typing: you decide!
• Various shortcut notations: less verbose than Java