Your SlideShare is downloading. ×
eXo EC - Groovy Programming Language
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

eXo EC - Groovy Programming Language

1,408
views

Published on

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
1,408
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
9
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. Groovy Programing Language
    • Why this topic?
      • Agile web development with Grails
      • 2. Apply better practice to our groovy templates
    • After this topic?
      • Web development with Grails
      • 3. Develop Grails with Flex and deploy on Google App Engine or Spring Source Cloud
  • 4. Groovy Programming Language
    • What is Groovy?
    • 5. Let's play with Groovy
    • 6. Some basic differences from Java
    • 7. Some new operators
    • 8. Anything in Java but not in Groovy
    • 9. Expert Groovy
    • 10. Best practices
  • 11. What is Groovy?
    • In 1995, Java changed the world
    • 12. Now Java bloats with too many frameworks, libs... -> many organizations have to consider Ruby, LAMP, .NET for more productive and agile at lower costs
    • 13. Groovy appeared in 2003 – promising more complete and dynamic language for JVM instead of Ruby, Python, or JavaScript implementation for JVM.
  • 14. Let's play with Groovy
    • Our famous “Hello World” in Java
    • 15. Switch “Hello World” Java to Groovy
  • 16. Differences from Java
  • 22. Differences from Java
  • 30. New Operators
    • ?. (NULL-SAFE OBJECT NAVIGATION)
    • 31. ?: (ELVIS!)
    • 32. *. (THE SPREAD-DOT OPERATOR)
    • 33. <=> (COMPARISONS WITH A SPACESHIP)
    • 34. ${} (GROOVY STRINGS)
    • 35. [] (ARRAY-STYLE NOTATION FOR LISTS AND MAPS)
  • 36.
      In Java but not in Groovy
    • Java “FOR” loop
    • 37. No “DO...WHILE”
    • 38. Inner and anonymous classes: Not fully supported
  • 39.
      Expert Groovy
    • Closures : single-method anonymous classes
    • 40. [ &quot;apple&quot;, &quot;pear&quot;, &quot;cherry&quot; ].each { println it }
    • 41. Duck Typing : Applied to dynamic languages, it means that if an object has a particular property or method signature, then it doesn’t matter what type the object is, you can still call that method or access that property. This is only possible in dynamic languages because properties and methods are resolved at runtime.
  • 42. Best Practices
    • Use idiomatic Groovy
    • 43. Experiment
    • 44. Use methods where appropriate
    • 45. Use explicit types in method signatures