Groovy for Java Developers

15
Groovy for Java developers Peter Ledbrook e: [email protected] t: @pledbrook

description

This is the slide part of a talk that introduces the Groovy programming language to Java developers. The focus is on what you can do with it rather than the details of how to program in it. Most of the presentation is also live coding, so the slides aren't much use on their own.

Transcript of Groovy for Java Developers

  • Groovy for Java developers Peter Ledbrook e: [email protected] t: @pledbrook
  • To answer the question
  • Why would you use a language called Groovy?
  • Background
  • Copyright 2014 Cacoethes Software What is Groovy? OO language for the JVM Java-like syntax Optional types Dynamic or Static - your choice! Simple & expressive
  • Copyright 2014 Cacoethes Software Groovy is compiled Groovy Source Java Byte Code JVM Compilation java -cp groovy-all-2.3.0.jar
  • Copyright 2014 Cacoethes Software Groovy is compiled Groovy Source Java Byte Code JVM Compilation java -cp groovy-all-2.3.0.jar Just add Groovy JAR to your classpath
  • Copyright 2014 Cacoethes Software How do you use it? http://groovyconsole.appspot.com/
  • Copyright 2014 Cacoethes Software How do you use it? Download Groovy development kit (GDK) Install groovy, groovyConsole, groovysh http://groovy.codehaus.org/Download
  • Copyright 2014 Cacoethes Software How do you use it? Install msysgit Install GVM gvm install groovy 2.2.2 http://gvmtool.net/ (Windows only) Run as Administrator
  • Copyright 2014 Cacoethes Software How do you use it?
  • Copyright 2014 Cacoethes Software How do you use it? Lets see it in action!
  • In summary Great for cross-platform scripting Ideal for tests Seamless integration with Java Solid for application development
  • A great ecosystem! Geb SpockGVM Ratpack
  • Thank you!