4 ms·
Are people writing new non-Jenkins Groovy code in 2018? What's the use case? Legitimately curious. My experience with Groovy is always frustration and I liken i
by _asummers 9y ago
Are people writing new non-Jenkins Groovy code in 2018? What's the use case? Legitimately curious. My experience with Groovy is always frustration and I liken it to the Coffeescript of Java.
- tikkabhuna 9y agoGradle plugins? I wouldn't choose it over Java full time but it has some niceties like multi-line strings to help with testing.
- Larrikin 9y agoThose can be written in Kotlin now.
- twic 9y agoYou can write the plugins themselves in Java, and so i assume in any JVM language. Having written a few, i prefer Java to Groovy, as the Gradle API (SPI?) is pretty complicated, and it's reassuring to have my use of it typechecked. It's Gradle build scripts themselves that can now be written in Kotlin instead of Groovy. I haven't tried that yet, but it sounds pretty fresh.
- derherrf 9y agoWe use it for an embedded DSL to describe business logic quite successfully. Easily extendable via categories and embeds naturally in a larger JVM application. And there is Gradle.
- _asummers 9y agoTotally forgot about Gradle. Fair enough!
- monksy 9y agoGrails, POCs, Ratpat (ok danveloper.. we get it, that exists), Spock tests Why do you regularly get frustrated with groovy?
- _asummers 9y agoIt's probably a function of it being the language that exists, and my unfamiliarity with it. I regularly just want to do the Java versions of the operation but find myself "translating" to the Groovy code where I'm unfamiliar with the design methodologies of the language and where they differ from the Java methodologies. There's interop, I'm aware, but in things like Jenkins plugins, that's kind of heavy.
- monksy 9y agoIf you don't mind me expoliating your situation. It's probably the issue because it's not fundimentally that much different than java. [It's more of a half step] Take some time, read Groovy in Action in depth. Get some experience with it. It can be a lot of fun when you have more experience. (As is the case with scala as well. but that's more of a full step in languages)