• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
A lil' of Groovy for Ruby developers
 

A lil' of Groovy for Ruby developers

on

  • 307 views

My Groovy presentation to a Ruby User Group

My Groovy presentation to a Ruby User Group

Statistics

Views

Total Views
307
Views on SlideShare
307
Embed Views
0

Actions

Likes
0
Downloads
0
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    A lil' of Groovy for Ruby developers A lil' of Groovy for Ruby developers Presentation Transcript

    • the Groovy language José Juan Reyes Zuñiga
    • What is ! ! ! ?
    • { } ! ! ! Closure
    • grooovy ! groovysh ! groovyConsole
    • public class HolaMundo { private String nombre; public String getNombre() { return nombre; } public void setNombre(String nombre) { this.nombre = nombre; } public String saluda() { return "Hola " + this.nombre + " !!!"; } public static void main(String[] args) { HolaMundo objeto = new HolaMundo(); objeto.setNombre("@grailsmx"); System.out.println(objeto.saluda()); } } public class HolaMundo { private String nombre; public String getNombre() { return nombre; } public void setNombre(String nombre) { this.nombre = nombre; } public String saluda() { return "Hola " + this.nombre + " !!!"; } public static void main(String[] args) { HolaMundo objeto = new HolaMundo(); objeto.setNombre("@grailsmx"); System.out.println(objeto.saluda()); } }
    • class HolaMundo { String nombre def saluda() { "Hola ${this.nombre} !!!" } } ! def objeto = new HolaMundo(nombre:"@grailsmx") println(objeto.saluda())
    • Lists Maps Ranges Operators … Syntatic Sugar
    • Dynamic typing is optional… ! Static vs. dynamic ! Essential static ! Performance
    • Thank you! José Juan Reyes Zuñiga