*
The moose likes Groovy and the fly likes Groovy as a replacement of JAVA Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Languages » Groovy
Bookmark "Groovy as a replacement of JAVA" Watch "Groovy as a replacement of JAVA" New topic
Author

Groovy as a replacement of JAVA

Sunil Chavan
Greenhorn

Joined: Apr 11, 2007
Posts: 28
Hi Dave,

In groovy, functionality can be achived with a minimal code compare to JAVA.

Can we use Groovy as a replacement of JAVA for a web development project.

Thanks & Regards,

Sunil Chavan.
Dave Klein
author
Ranch Hand

Joined: Aug 29, 2007
Posts: 77
That's a very big question. I'll try to answer it in the context of Grails.

With Grails you are using quite a bit of Java code that somebody else wrote. (Spring, Hibernate, etc.) But you don't have to write any Java code to use Grails. So, yes, you can completely replace Java with Groovy in a web application as far as the code you are writing is concerned.

However, if you come across a situation where you need to do some heavy computation, and performance is an issue, it might be preferable to use Java. Grails makes that easy too. Just add any .java source files that you would like to include in your project, into the /src/java directory and they'll be compiled and ready to use throughout your application.

Grails really can give you the best of both worlds!

Dave
Sunil Chavan
Greenhorn

Joined: Apr 11, 2007
Posts: 28
Hi Dave,

Thanks a lot for your answer.

Sunil Chavan.
Sunil Chavan
Greenhorn

Joined: Apr 11, 2007
Posts: 28
...
[MG edited as it no longer made sense. See my post below for background]
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10268
    
    8

Sunil,
Thank you for noticing the issue. I have removed the offending post.

PS> Sunil's message above referred to a post which was not suitable for the Ranch.


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Sunil Chavan
Greenhorn

Joined: Apr 11, 2007
Posts: 28
Hi Maneesh,

Thanks a lot for such a quick response.

Thanks & Regards,

Sunil Chavan
Vyas Sanzgiri
Ranch Hand

Joined: Jun 16, 2007
Posts: 686

I would rather say it is meant to compliment it than compete with it


===Vyas Sanzgiri===
My Blog
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Groovy as a replacement of JAVA