Your SlideShare is downloading. ×
Magic with groovy & grails
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Magic with groovy & grails

176

Published on

Magic with groovy & grails

Magic with groovy & grails

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
176
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
1
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. © Catalysts GmbH Zalán Borsos Magic with Groovy & Grails The Search is over © Catalysts GmbH
  • 2. What is Groovy? • Dynamic language • 1.0 released on 02.01.2007 • Dynamically compiled to JVM bytecode • 99% of Java code is also valid • Groovy = Java + dynamic typing + additional methods & operators + closures © Catalysts GmbH
  • 3. If we indent code properly, why do we need semicolons? © Catalysts GmbH
  • 4. Dynamic Typing Java Groovy ArrayList<String> list = new ArrayList<String>() { { add("A"); add("B"); add("C"); } }; ? HashMap<Integer, String> map = new HashMap<Integer, String>() { { put(1, "A"); put(2, "B"); put(3, "C"); } }; © Catalysts GmbH
  • 5. Additional Operators • Spread *. • Elvis ?: • Safe navigation ?. • Equals == © Catalysts GmbH
  • 6. Closures “A Groovy Closure is like a ‘code block’ or a method pointer. It is a piece of code that is defined and then executed at a later point.” http://groovy.codehaus.org/Closures © Catalysts GmbH
  • 7. Functional Programming • Closures as functions • Closures as function compositions • Fibonacci © Catalysts GmbH
  • 8. What is Grails? • Web application framework • Convention over consideration • Spring MVC • Fast prototyping and development © Catalysts GmbH
  • 9. © Catalysts GmbH

×