Yesterday I got great news that Grails 0.1 was released. Grails can be killer app for Groovy languages.
Lets imagine Ruby on Rails with your Java investment protection. You don’t need
- to learn completely new language – it is not so big problem
- completely new libraries – which is much worse
Groovy has excellent learning curve, first you can take your java code and in most cases it is Groovy code too. Then you can start using groovy typing savers like
- use
@Property String name
instead getter/setter methods - use
['a']
which is instance ofList
- use
['key':'value']
which is instace ofMap
- use
def
instead of type - omit semicolons
Next step can be using GroovyTestCase instead of jUnit’s TestCase and write unit tests in groovy. Then there is very easy work with XML using Builders and GPath. If I have teased you, look at Groovy web site….