News for hackers. Stuff that matters.
Re:Java 22 Released by bheadmaster on Tuesday March 19, 2024 @03:28PM (#39759369)
Groovy itself is a bad Groovy.
Re:Java 22 Released by AtlasBarfed on Tuesday March 19, 2024 @05:44PM (#39760587)
bad opinion is bad

I get gradle is a disaster (but that's more of a poorly managed and evolved DSL problem)

But ... does anyone use Spock and think "groovy sucks"? Yeah, I doubt it.

Re:Java 22 Released by svieira on Tuesday March 19, 2024 @10:16PM (#39762330)
I hate to be "that guy" but ... raises hand.

Spock is also a DSL disaster that's trying to be ScalaTest (https://www.scalatest.org/user_guide/property_based_testing) but in a dynamic language. Every time I use it I have to re-learn the syntax. (I have the same issue with Gradle, so maybe it's just-me?)

Re:Java 22 Released by bombcar on Tuesday March 19, 2024 @11:35PM (#39762645)
My problem with gradle is I never use it enough to get familiar with it, once the problem is solved I promptly forget everything.
Re:Java 22 Released by AtlasBarfed on Wednesday March 20, 2024 @01:55AM (#39763240)
It's the perfect example of a bad DSL.

A "DSL" like SQL that you use hundreds of times a year you'll learn the model of.

A DSL like groovy that you use once for project setup (and for that you'll one-off it likely and stackoverflow the rest of the question) is not. And it isn't really natural, it's a bunch of arcane steps that at the end might superficially look a bit consistent, but still really isn't.

Groovy really needs an autocompleter or a generator. Or, well, as you say, you stackoverflow for everything outside the very vanilla basics of it.

But good luck getting the right version match to the syntax you need. Christ.

Re:Java 22 Released by ackfoobar on Wednesday March 20, 2024 @05:32AM (#39764382)
Having types in Gradle by using the Kotlin DSL, with IntelliJ auto-complete, solves ~80% of that pain.
Re:Java 22 Released by adl on Wednesday March 20, 2024 @12:20PM (#39768698)
Raises hand Here! I have to work with Spock on a Java codebase and I think groovy sucks ;-)
Re:Java 22 Released by photogineer on Wednesday March 20, 2024 @02:38PM (#39770407)
Yeah I use Spock and Groovy all the time, good god does it suck big ones.