POLL: do you translate some of your java code to groovy?

Hello all,
The subject is really important to us, since a positive answer means providing migration aids like http://www.jetbrains.net/jira/browse/grvy-1147 for example is really what people need.
Internally we discovered quite some possibilities for helping people to translate java into groovy (I don't in any way mean you should translate all your java into groovy, I still think performance matters), so the above mentioned request could be only one in a row... Also if you have ideas for such migration features, please post them here or to JIRA as well.

Eugene.

0
Avatar
Permanently deleted user

Indeed I find myself doing this more and more often.
Most of my current projects can easily trade performance for groovy's dynamic features (most of the hard work is done by the database and GroovySQL has some excellent tricks).

Usually, after a simple rename of the file from .java to .groovy everything works fine (with the notorious exception of anonymous classes) and I continue making the code more "idiomatic" from there.

Congrats on IDEA's Groovy support, second to none!

PS - When can we expect similar quality support for Jython? ;)

0
Avatar
Permanently deleted user

PS - When can we expect similar quality support for
Jython? ;)


Are you ready for Jython adoption yourself or is it just another H-ray(hype) from Sun that has reached you?:)

0
Avatar
Permanently deleted user

PS - When can we expect similar quality support

for

Jython? ;)


Are you ready for Jython adoption yourself or is it
just another H-ray(hype) from Sun that has reached
you?:)


:)
I've actually been a fan of Python for a long time and I'm actually glad that it was Sun that got finally bitten by the snake. ;)

0

Hi, actually I'm trying to do so as much as possible, so given the chance: yes!

I've even wrote a (similar) blog about it: http://blog.xebia.com/2007/12/25/combining-groovy-and-java/

0
Avatar
Permanently deleted user

Yes, we do it every so often.

In my current project, we have a number of developers that have to change Java to Groovy code on a daily basis. We would be fine with very basic support, though:
- renaming the file from .java to .groovy
- doing the move in svn (or equivalent)

Automatically transferring properties into Groovy style would be a nice-to-have.

It appears that developers with a long Java history often start out with a Java class, only to recognize later that a Groovy class would have been much easier ;)

0
Avatar
Permanently deleted user

Yep, 2 separate requests have been created for property declarations and property references (maybe to java)
http://www.jetbrains.net/jira/browse/GRVY-1178
http://www.jetbrains.net/jira/browse/GRVY-1179

Thank you,
Eugene.

0

I do quite a bit of conversions because I'm always changing Java Examples to Groovy Scripts. An example would be all the HTTPClient examples that I convert to groovy and run them as a script from intellij (instead of using a main method, etc).

0

请先登录再写评论。