wood burning stoves 2.0*
The moose likes Groovy and the fly likes Concerns with Java+Groovy Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Languages » Groovy
Bookmark "Concerns with Java+Groovy" Watch "Concerns with Java+Groovy" New topic
Author

Concerns with Java+Groovy

Charles Hasegawa
Ranch Hand

Joined: May 22, 2003
Posts: 117
The biggest reasons I've stayed away from scripting languages within Java are the ones you'd probably guess - maintainability and pure maintenance.

If I introduce Groovy to my code, I force another technology upon all persons who are developing on that common code base. And while that might normally happen anyway with new API/libraries, its a bit harder with something that is conceptually different.

However, with Groovy being one of many technologies that is getting a lot of word of mouth these days (at least in my office), I'd like to know a bit more about it (best tool for the job and all that). My first concern with introducing a scripting language into my java code has to be maintenance. Will most common IDEs (specifically Eclipse) debug groovy script in java code?
Raghavan Muthu
Ranch Hand

Joined: Apr 20, 2006
Posts: 3344

That's correct. I just now read in another thread that IntelliJ has better support for Groovy than Eclipse!


Everything has got its own deadline including one's EGO!
[CodeBarn] [Java Concepts-easily] [Corey's articles] [SCJP-SUN] [Servlet Examples] [Java Beginners FAQ] [Sun-Java Tutorials] [Java Coding Guidelines]
Tina Ma
Ranch Hand

Joined: Nov 29, 2007
Posts: 198
Which is the plugin for groovy in eclipse?


Tina
SCJP 1.4, SCWCD 1.4
Marc Peabody
pie sneak
Sheriff

Joined: Feb 05, 2003
Posts: 4727

You mentioned debugging and I just thought I'd hop on my little soap box here.

Debug modes in IDEs are incredibly over-used and over-rated.

If all developers' debug mode time were used to 1)refactor code into more concise methods and 2)write unit tests, we'd all be sitting at the beach bragging about how few production issues we have and who's the closest to 100% test coverage.

Think about it: what kind of code is easiest to step through in debug mode? Big, long, honkin' methods. This can cause our quality procedures (debugging) to influence our development strategies in a wrong direction.


A good workman is known by his tools.
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24166
    
  30

Mmmmmmm. For me, a debugger provides the alternative to something else I hate even more: pervasive logging. Nothing I hate more than code littered with constant "Entering method X" and "Setting color" and "Ejecting warp core" logging calls. I don't like the code, and I don't like the logs, and I don't like the dependency on the morass of logging libraries.

Sorry, what were we talking about before?


[Jess in Action][AskingGoodQuestions]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Concerns with Java+Groovy
 
Similar Threads
Groovy embedded in Java and maintenance
Gwing
Unsure if this is worthwhile
Groovy, a new scripting language, yeeeha, so what ?
Migrating data from XML file to Sybase tables