Get Groovy on JVM!

I was completely taken for a shock to know the power of th Groovy.

Groovy is well integrated with the new api’s like SwingX Components. Another feature of groovy which is very much unlike ruby or Python is that, we can substitute the ANT scripting from XML to Groovy called GANT. Now thats awesome is’nt it. I know some of you will think hard on this due the excuses better known to you. As far as i am concerned, I always believe that XML has been over used for configurations,Build scripts such as ANT etc. i feel XML becomes clumsy to handle once the code grows. Anyways no flames on XML though.

As far as the closures inclusion in Java is concerned, I was actually in doubt like if it makes the language more complex .. as some tech folks doubt. But i feel the Closures syntax in Groovy is awesome, can have it in a main stream Java & its not complex.

I feel Groovy would have been better option instead of Java FX (F3) for Rich client Applications, I honestly feel Groovy would have been a easy contender to have new API’s required for the Rich Client Applications just stacked and its done. Language wise, Groovy is certainly sound and complete. GRAILS (Groovy on RAILS) is another reason for same.

The one area where Groovy lacks is the developer tools, Offcourse there are plugins for Netbeans(coyote), IntellJ Idea, JEdit, Eclipse.

Ok all said and done, Here is my first Groovy Script🙂

printName={name-> println(name)}

4 Comments

  1. Hi its good to know abt groove….
    but how should we run and give me sum basic hints…before going to example right….

    still their is lots of more features in JAVAFX…

    wat u say…

    am i right ?

  2. Sidu: You can also define explicit types in Groovy. Whether it is cleaner or not is a matter of personal preference. Personally I feel that Scala reminds me a bit of ECMAScript.

    Groovy is really a different way to code in Java. We are not trying to replace Java and believe that the best language for the task should be used. The compiler allows you to mix Groovy bits in with the Java bits. The SwingX components were brought to Groovy as a part of the 2007 Google Summer of Code.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s