Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Groovy as a replacement of JAVA

 
Sunil Chavan
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Dave,

Thanks a lot for your answer.

Sunil Chavan.
 
Sunil Chavan
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
...
[MG edited as it no longer made sense. See my post below for background]
 
Maneesh Godbole
Saloon Keeper
Posts: 11085
13
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Sunil Chavan
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Maneesh,

Thanks a lot for such a quick response.

Thanks & Regards,

Sunil Chavan
 
Vyas Sanzgiri
Ranch Hand
Posts: 686
Chrome Netbeans IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would rather say it is meant to compliment it than compete with it
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic