• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

How Groovy Helps Java Developers

 
Ranch Hand
Posts: 198
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am very new to groovy, I came to know that Groovy is a new language which built on java, I really like to know how Groovy helps java developers in there productivity areas.
 
Author
Posts: 109
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Imagine Java is extended with other capabilities this very instance-metaprogramming, closures, more fluent lightweight, and simpler syntax and API. That is what Groovy is. It will improve the programming experience and productivity of Java programmer by extending your Java language. If you want to create internal DSLs, you will find it pretty easy to do that with Groovy. If you want to take advantage of aspects, you can do that easily with Groovy. If you want to create processes or work with various other objects in JDK, you can do that easily with Groovy enhancements to JDK, the GDK.
 
Ranch Hand
Posts: 198
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
it also means LESSER number of lines of code.
 
Mohammed Yousuff
Ranch Hand
Posts: 198
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
So Groovy is similar to Java API's. Can i use the class which i created using Grovvy in Java 1.4 ??

Thanks a lot for your comments
 
Venkat Subramaniam
Author
Posts: 109
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes, you can intermix Java and Groovy. You can use (associate, aggregate, inherit from, delegate to...) Groovy classes in Java and vice versa. Groovy preserve Java semantics and you can not only intermix classes, you can also intermix Java code (for most part) in Groovy as well.
 
Mohammed Yousuff
Ranch Hand
Posts: 198
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thats Really Sounds Great..

can you please explain me some of areas which Goovry helps better than java ...

Did Java is moving from platform independent to language independent (like Dot Net)...
[ April 11, 2008: Message edited by: Mohammed Yousuff ]
 
Ranch Hand
Posts: 10198
3
Mac PPC Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Mohammed Yousuff:
Thats Really Sounds Great..

can you please explain me some of areas which Goovry helps better than java ...

Did Java is moving from platform independent to language independent (like Dot Net)...

[ April 11, 2008: Message edited by: Mohammed Yousuff ]



Not exactly. Your Groovy code gets compiled to a byte code which is your normal java class and this means that you can run it from your JVM. There are really a lot of places where I found Groovy to be easy and the obvious one would be Groovy is Simplified Java. You don't have to learn new syntax or new keywords. I'm really impressed with it.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic