| Author |
Groovy as a replacement of JAVA
|
Sunil Chavan
Greenhorn
Joined: Apr 11, 2007
Posts: 24
|
|
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: 24
|
|
Hi Dave,
Thanks a lot for your answer.
Sunil Chavan.
|
 |
Sunil Chavan
Greenhorn
Joined: Apr 11, 2007
Posts: 24
|
|
...
[MG edited as it no longer made sense. See my post below for background]
|
 |
Maneesh Godbole
Saloon Keeper
Joined: Jul 26, 2007
Posts: 7602
|
|
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.
|
[Donate a pint, save a life!] [How to ask questions]
|
 |
Sunil Chavan
Greenhorn
Joined: Apr 11, 2007
Posts: 24
|
|
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
|
 |
 |
|
|
subject: Groovy as a replacement of JAVA
|
|
|