this post was submitted on 01 Dec 2023
35 points (72.7% liked)

Programmer Humor

32453 readers
1479 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] thadah@lemmy.world 8 points 11 months ago (2 children)

Ding ding ding!

Although Gradle is not much better imo...

[–] deathmetal27@lemmy.world 2 points 11 months ago

You can now write pom.xml in other languages as well if you want: https://github.com/takari/polyglot-maven/

[–] pixelscript@lemmy.ml 1 points 11 months ago* (last edited 11 months ago)

I had struggled with Gradle off and on for something like five years before eventually learning that Gradle files were executable code files (as opposed to static data files such as .ini) written in Groovy (as opposed to some unique esoteric Gradle lang), and the code within them interacts with implicitly declared objects.

All of that could have been figured out very quickly with a cursory look over the documentation. I just never read it until way past the time I should have. That's on me. I just wanted the stupid magic Gradle incantation that would get my stupid Minecraft mod to compile.

Also, I gotta say, holy crap I hate Groovy. All of its syntax ""sugar"" just makes it hard to read unless you already know what's up. The unique ways it makes code look like not code was the bulk of the reason why I took so long to figure out that Gradle files were code in the first place.

I know you can write Gradle files in Java instead of Groovy, but at this point that just seems wrong. Build files shouldn't look like source files. I have no objective justification for this, it just doesn't feel like the way.