groovy grails
Download
Skip this Video
Download Presentation
Groovy & Grails

Loading in 2 Seconds...

play fullscreen
1 / 13

Groovy & Grails - PowerPoint PPT Presentation


  • 220 Views
  • Uploaded on

Groovy & Grails. Jean Barmash CTO, EnergyScoreCards.com www.nywebguy.com. Agenda. Groovy Introduction Examples Grails Introduction Convention over Configuration Build A Simple App. Groovy. Dynamic Language on JVM Focus on programmer productivity Focus on Essence vs. Ceremony

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about 'Groovy & Grails' - hector


An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
groovy grails

Groovy & Grails

Jean Barmash

CTO, EnergyScoreCards.com

www.nywebguy.com

agenda
Agenda
  • Groovy
    • Introduction
    • Examples
  • Grails
    • Introduction
    • Convention over Configuration
    • Build A Simple App
groovy
Groovy
  • Dynamic Language on JVM
  • Focus on programmer productivity
  • Focus on Essence vs. Ceremony
  • Superset of Java
  • Native Java Library Integration
  • Compiles into Java
  • Dynamic Typing
  • Native Syntax for Lists, Maps, Sets, Ranges
very sweet tons of syntactic sugar
Very Sweet – Tons of Syntactic Sugar
  • Tons of Options
    • Optional parentheses
    • Optional semicolons
    • Optional Return
  • Safe Dereferencing
  • Autoboxing
  • GStrings
  • Regular Expressions
  • Autogenerated Setters / Getters
  • Even Elvis….
even groovier
Even Groovier
  • Closures
  • MixIns & Categories
  • Advanced MetaProgramming Capabilities
  • AST (Abstract Syntax Tree) Transformations
  • Great XML Processing Capabilities
  • Object Builders / XML Builders
  • Easy to make DSLs
  • Google App Engine
grails
Grails
  • Web Development framework inspired by Ruby on Rails
    • Convention over Configuration
    • DRY – Do Not Repeat Yourself
    • More focused on domain objects than Rails
  • Underlying Libraries:
    • Hibernate
    • Spring
    • SiteMesh
    • Quartz
    • J2EE / Servlet
grails key features
Grails Key Features
  • Convention over Configuration
    • Domain Objects
    • Controllers
    • Views
    • Services
    • Dependency Injection
slide8
GORM
  • GORM – Robust Domain Modeling Layer
    • Built on Top of Hibernate, which is hidden
    • Advanced Layer for modeling of relationships
    • Maps to Database over JDBC or JPA
    • Dynamic Finders – query the objects
    • CRUD Operations
    • Constraints
    • Performance Optimizations
  • Can be used outside of Grails, including in Java Apps
ui features
UI Features
  • Scaffolding to generate Views
  • Layout Elements
  • VERY Easy TagLibs
  • Converters to create RESTful services
plugins plugins plugins
Plugins, Plugins, Plugins
  • A core concept in Grails
    • Unit of Functionality
    • Unit of Reusability
    • Unit of Integration
  • Creating a plugin is almost identical to creating an application
  • Over 200 Plugins in all sorts of areas
    • Central Repository
    • http://grails.org/plugin/home
other stuff
Other Stuff
  • Gradle – dependency resolution
  • Gant – build tool
  • GPars – actor concurrency library
  • Griphon – Grails like framework for building Swing application
resources
Resources
  • Groovy Usage Patterns
    • http://gettinggroovy.wordpress.com/2009/05/20/the-gr8-conference-groovy-usage-patterns/
  • Grails – www.grails.org
  • Groovy – http://groovy.codehaus.org
ad