• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Refactoring

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In the staid old world of Java and C#, we have some very solid refactoring tools. Combined with solid unit tests, we can whip code into shape and make evolutionary design changes. Of course you can refactor "by hand" but tools are what enable us to make fast, safe changes to our code.

But what about Groovy? Are there any refactoring tools at all?

--johnt
 
author
Posts: 77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Tool support for dynamic languages may never be quite as good as that for static languages, but it is coming along. IntelliJ IDEA, NetBeans, and SpringSource Tool Suite (Eclipse) all provide some automated refactoring for Groovy code. I believe IDEA still has the lead in this area but the others are catching up.

I've found that with Groovy code, and especially with Grails, I don't need to do as much refactoring as with Java code. And when I do, it's easier to see what's what and what needs to change. There's a lot less noise in my code. I personally, rarely use an IDE and I'm getting much more done in less time than I did using Eclipse or IntelliJ IDEA on JSF/EJB projects!

Just my $0.02

Dave
 
Ranch Hand
Posts: 686
Netbeans IDE Chrome Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have found Netbeans make Groovy and Grails much easier. I have not tried STS for Eclipse as yet but Netbeans has picked up most of the features listed above and it is "free"
 
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Vyas Sanzgiri wrote:I have found Netbeans make Groovy and Grails much easier. I have not tried STS for Eclipse as yet but Netbeans has picked up most of the features listed above and it is "free"



Why did you put the word free in quote?

I find Intellij's refactoring of Groovy code pretty atrocious. Most times it tells me that the refactoring is too complex so it can't continue. Which means some of my code is refactored and some is not. Don't get me wrong, i still think Intellij has the best groovy/grails support to date (although I haven't tried the latest Netbeans). But don't expect superb refactoring, for reasons that Dave mentioned.
 
Vyas Sanzgiri
Ranch Hand
Posts: 686
Netbeans IDE Chrome Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Try it - Netbeans has come a long way. We are using it for enterprise development since the last 4 yrs and loving it. They have a great community and excellent if not the best support for Groovy and Grails.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic