Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Groovy on Android

1,075 views

Published on

Recently Apple has introduced a new language - Swift. Many of us have already had an opportunity to work with it. Without any doubt Swift will be more popular than Objective-C. Unfortunately it is useful for iOS only. Do we have a viable alternative for Android? Yes, and it is called Groovy!

During this meet-up Olexandr Leuschenko, cross-platform mobile developer:

- tells what Groovy is;
- shows the differences between Java, Swift and Groovy code;
- talks about development with Groovy for Android in general.

The presentation will be interesting for all Android developers.

Published in: Technology
  • Be the first to comment

Groovy on Android

  1. 1. Groovy on Android 9 oct 2014
  2. 2. Agenda 1. What is Groovy? 2. Swift and Groovy 3. Groovy on Android
  3. 3. Agenda 1. What is Groovy? 2. Swift and Groovy 3. Groovy on Android
  4. 4. What Apple think
  5. 5. After Swift release • Ruby devs: Swift looks like Ruby • Groovy devs: Swift looks like Groovy • C# devs: Swift looks like C# • Java devs: WTH is a closure?

  6. 6. Groovy • Started in August 2003 (release 1.0 on January 2, 2007) • Open Source (BSD/Apache licenses) • Compiled to Java Bytecode • Grammar similar to Java with inspiration from Python, Ruby and Smalltalk • Extremely flat learning curve for the Java developers
  7. 7. Groovy Java
  8. 8. Groovy features • Annotations for AST Transformation (@InheritConstructors,@Singleton, @EqualsAndHashCode) • Closure • Metaprogramming (adding method to a class on the fly) • Native JSON support
  9. 9. Groovy features • ?. and *. operators • Native support for Lists, Maps and Regular Expressions • String interpolation • Static and Dynamic typing
  10. 10. Groovy features • ?. and *. operators • Native support for Lists, Maps and Regular Expressions • String interpolation • Static and Dynamic typing
  11. 11. Agenda 1. What is Groovy? 2. Swift and Groovy 3. Groovy on Android
  12. 12. Groovy and Swift
  13. 13. Groovy and Swift
  14. 14. Groovy and Swift
  15. 15. Groovy and Swift
  16. 16. Groovy and Swift
  17. 17. Groovy and Swift
  18. 18. Groovy and Swift
  19. 19. Agenda 1. What is Groovy? 2. Swift and Groovy 3. Groovy on Android
  20. 20. Let’s code!
  21. 21. Q & A

×