Groovy vs Java             NOV 2011
The real battle is static vs dynamictypingIn other words: ● Static :   The type of each variable (or expression) must be k...
Which are their super powers ?  ● Static Typing–Errors are often detected earlier and with better error messages–Better ID...
We choose the dynamic wayMany of the rules and patterns we have been taught no longerapply 1. Patterns to review     ○ Sin...
DEMOSWhat are you doing?Lets go to see CODE !!!https://github.com/pablomoretti/ppt-groovy-vs-java
Lessons ● Testing the Duck:  Used when flexibility is important, but it has appropriate tests in place.● Static Typing isn...
Questions ?              @elsantob
Upcoming SlideShare
Loading in …5
×

Groovy & Java

2,004 views

Published on

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

  • Be the first to like this

No Downloads
Views
Total views
2,004
On SlideShare
0
From Embeds
0
Number of Embeds
25
Actions
Shares
0
Downloads
18
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Groovy & Java

  1. 1. Groovy vs Java NOV 2011
  2. 2. The real battle is static vs dynamictypingIn other words: ● Static : The type of each variable (or expression) must be known at compile time. ● Dynamic:Type information is known only at runtime.
  3. 3. Which are their super powers ? ● Static Typing–Errors are often detected earlier and with better error messages–Better IDE support–Better optimisations are often possible ● Dynamic Typing–Speeds up development through duck-typing–Allows more expressiveness through DSLs
  4. 4. We choose the dynamic wayMany of the rules and patterns we have been taught no longerapply 1. Patterns to review ○ Singleton ○ Resources ○ Delegation ○ ... 2. Performace ○ Java always wins ? ○ We need win ?
  5. 5. DEMOSWhat are you doing?Lets go to see CODE !!!https://github.com/pablomoretti/ppt-groovy-vs-java
  6. 6. Lessons ● Testing the Duck: Used when flexibility is important, but it has appropriate tests in place.● Static Typing isnt the bad guy of the movie: Used when we know that code doesn´t need to be dynamic; typing is useful to shed some light on code.● Interface-oriented design: The use of interfaces is not necessary, but they are useful.● Performance: In Groovy, the sensitive parts can always be written in Java
  7. 7. Questions ? @elsantob

×