• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Concerns with Java+Groovy

 
Charles Hasegawa
Ranch Hand
Posts: 117
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3381
Mac MySQL Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's correct. I just now read in another thread that IntelliJ has better support for Groovy than Eclipse!
 
Tina Ma
Ranch Hand
Posts: 198
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which is the plugin for groovy in eclipse?
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24211
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic