Day 3 at SpringOne2GX 2013

12 / Sep / 2013 by Mohd Farid 1 comments

Day 3 of SpringOne2GX’13 was full of new experiences and learning. Knowledge is flowing everywhere and its an amazing feeling listening to the people whom we have been reading and following for so long. The energy and enthusiasm among both attendees and presenters are very high and really appreciable. It reminds me of our Code Camp days at IntelliGrape where everybody enjoys knowledge sharing sessions held by different mentors with same curiosity as they are new to programming.

IntelliGrape being one of the proud sponsors of the event has setup a booth at the venue. People from different horizon like Groovy, Grails and Cloud visit our booth with their queries where they are provided with proper consultation.  Its very surprising and a moment of proud as well when they appreciate our work, especially our blog, even 12000 miles away.

All the sessions are so interesting and worth attending that we had a tough time in deciding which session to attend.

 

Here is the brief summary of sessions that we attended:

Creating Groovy DSLs that developers can actually use – Guillaume Laforge & Dr. Paul King
Dr. Paul and Guillaume shared many use cases of applying DSLs in sectors like Banks, Insurance policy risk, Market Data analysis etc. They explained the power of groovy by creating DSLs with an example of sending instructions to move a rover on mars. We were supposed to create a DSL to allow scientists send textual commands to rover. Scientists, not being a programmer would definitely need a DSL for this.

The instructions which we started as a program of 10 lines in java was reduced to just a single line in DSL, something as simple as move right at 3 Km/hr.  Amazing, isn’t it !!!

Polyglot Programming – Jeff Scott Brown
Jeff talked about the support of Grails to allow use of APIs in Java, Clojure or Scala. Any Class written in java can be directly used in the Grails with the help of easy to install Clojure plugin.

Jeff also explained how we can simply create another plugin for any language that supports java execution. He also explained the internal details of the Clojure plugin of Grails.

Design Patterns in Groovy – Venkat Subramaniyam
Our SpringOne2GX visit would have been incomplete without attending Venkat’s talk. Venkat explained many wonderful patterns of Groovy coding, supported by some really amusing stories and one liners. The entire session was demo driven with easy to understand and implementable examples.

The examples from the session can be seen at Venkat’s website: http://www.agiledeveloper.com/downloads.html

Grails Plugin Best Practices – Burt Beckwith
Some of the best practices as explained by Burt:

  1. Do not keep any unused code in plugin.
  2. Never use new plugins to instantiate classes, try to use Spring’s dependency Injection approach to initialize variables as it brings out extensibility.
  3. Use a logical package name like grails.plugin.pluginName.
  4. Make full use of capabilities provided by plugin handler methods doWithSpring, loadAfter etc.
  5. Most importantly, support your plugin.
  6. Use gitignore to ignore class files and other generated stuff.
  7. Follow the proper version convention for the plugins like start with a 0.1.
    Version 1.0 is assumed to be a very stable version so it should be achieved after multiple smaller versions.

Looking forward to more such sessions tomorrow.

* All the sessions were being video recorded. I hope they get uploaded soon on pivotal website for people who were not able to attend SpringOne2GX or a part of it.

FOUND THIS USEFUL? SHARE IT

comments (1 “Day 3 at SpringOne2GX 2013”)

  1. Vivek

    Thanks for the writeups summarizing the days at SpringOne2GX. These have been helpful in making a mental note on what to look for when the videos appear online(if they do).

    Reply

Leave a comment -