groovy koans - springio 2011

Download Groovy Koans - SpringIO 2011

If you can't read please download the document

Upload: dani-latorre

Post on 16-Apr-2017

2.924 views

Category:

Technology


3 download

TRANSCRIPT

Groovy KoansDaniel Latorre

- Co-fundador de Jobsket.com- Desarrollador independiente: Java/Groovy/Grails- Google Summer of Code 2008- @dani_latorre - http://www.danilat.com- CV completo en http://www.jobsket.es/cv/dani- [email protected]

Quin soy?

Un kan (; Japons: kan, Chino: gng'n) es, en la tradicin zen, un problema que el maestro plantea al novicio para comprobar sus progresos. Muchas veces el kan parece un problema absurdo, ilgico o banal. Para resolverlo el novicio debe desligarse del pensamiento racional y aumentar su nivel de conciencia para adivinar lo que en realidad le est preguntando el maestro, que trasciende al sentido literal de las palabras.

http://es.wikipedia.org/wiki/Kan

Koans?

- http://github.com/cjudd/groovy_koans- Inspirado en Ruby Koans(http://rubykoans.com)- Jim Shingler(http://jshingler.blogspot.com) y Christopher M. Judd(http://juddsolutions.blogspot.com)- Escritores de Beginning with Groovy & Grails- Evolucin: http://github.com/cjudd/groovy_koans/issues

Groovy Koans

Groovy

- Lenguaje dinmico para la JVM- Menos ceremonioso y ms expresivo que Java- No hay tipos primitivos, todo son objetos- Compilado o script- Imports por defecto (java.util.*, java.io.*,...)- Compilacin cruzada (Joint compilation)- El GDK extiende al JDK- Expandos y Meta Object Protocol

Artculos de introduccin a Groovy

- http://groovy.org.es/home/story/89- http://groovy.org.es/home/story/99- http://groovy.org.es/home/story/128

Qu cubren los Groovy Koans?

- La verdad en Groovy- Cadenas- Fechas- Rangos- Listas- Sobrecarga de operadores

Qu cubren el subconjunto seleccionado?

Gran parte de:- La verdad en Groovy- Cadenas- Fechas- Rangos- Listas

Nada de:- Sobrecarga de operadores

Dnde est el cdigo

- Si tienes git: git clone git://github.com/danilat/groovy_koans.git - Si no tienes git:tar.gz: https://github.com/danilat/groovy_koans/tarball/masterzip: https://github.com/danilat/groovy_koans/zipball/master

Empecemos

$ groovy AllKoans.groovyMuch you will learn from the Groovy Koans.

Much you have to learn.Study well the following from koans.TruthKoans.testTrueForTruth:expected: but was:

Do or do not... there is no try. - Master Yoda

manos a la obra!