DEV Community

Cover image for 10 reasons to use Groovy in 2019

10 reasons to use Groovy in 2019

José Coelho on January 05, 2019

Why Groovy? It's been about a year since I joined my company's DevOps team and one of the main tools we use is Jenkins which gets along ...
Collapse
 
hiddewie profile image
Hidde Wieringa

What is your view on Kotlin compared to Groovy?

(Background: In my team we have an active debate going on for the last months about switching to Kotlin. We have been using Groovy for some years but feel that the language is slowly 'dying' and getting less interest in favour of Kotlin.)

Collapse
 
daniel_sun profile image
Daniel.Sun

Groovy has been evolving for years and Groovy 3.0.0 will be released with lots of new features this year, so Groovy is not 'dying' and will not be die.

Collapse
 
bitsnaps profile image
Ibrahim.H

Thank you for the great work you're doing to groovy 3.0, I still believe that groovy should become one day fully static compile in order to live longer, maybe it's in the roadmap of 4.0, and it's ok to deprecate things that prevent that from happening.

Collapse
 
jcoelho profile image
José Coelho

Hey Hidde,

I think they're both very interesting languages, and of course, once a new language comes along its "competitors" start losing some track in the community.
In the end I believe they will coexist, but be narrowed down to their specific purposes/applications. They both have their own strengths.

What are you guys using Groovy for? In your place I would start new projects in Kotlin, just to see how it goes, but not migrate old ones.

Collapse
 
hiddewie profile image
Hidde Wieringa

Yes, we have no trouble using Groovy for multiple projects. It is a great language.

Whad I personally miss the most in Groovy (versus Kotlin) is the type safety of all kinds of closures. And nullability.

For the more scripting side of things, Groovy might remain a better option than Kotlin in some cases.

Collapse
 
ythalorossy profile image
Ythalo Rossy Saldanha Lira

Thanks a lot for share with us

Collapse
 
wizzardo profile image
Mikhail Bobrutskov

I started using groovy in 2011, all these features were there, so why we should use it in 2019, does it have anything new? I would rather use kotlin now

Collapse
 
crisgoncalves84 profile image
Cristian Gonçalves

Great article José Coelho.
Good tips for whom's starting with Groovy.

Other interesting article would be Groovy vs Java performance comparison.

Collapse
 
bitsnaps profile image
Ibrahim.H

and yep! Groovy 3.0 is here
groovy-lang.org/releasenotes/groov...

Collapse
 
_hs_ profile image
HS

This is why Micronaut comes in hand where you can still use Groovy and GORM but get higher speeds. At least that's what I understood from reading about Micronaut, never actually tested it myself.

Collapse
 
elissonmichael profile image
Élisson Michael

Thanks for sharing this.