this post was submitted on 02 May 2024
398 points (92.7% liked)

Programmer Humor

19512 readers
349 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 36 points 6 months ago (22 children)

XML is the second worst programming language ever created by humans

[–] [email protected] 11 points 6 months ago (19 children)

It's a markup language, not a programming language.

[–] [email protected] 44 points 6 months ago (7 children)

Whoosh

Seriously though, spring configurations are written in XML and you create variables, call functions, and have control flow. Effectively turning XML into a horrible twisted shadow of a programming language.

All in the name of "configurability" through dependency injection.

[–] [email protected] 10 points 6 months ago (2 children)

Spring moved away from XML ages ago. I work on a 6 year old Spring project and it has never had a single line of XML in it.

[–] [email protected] 5 points 6 months ago (1 children)

I'm fond of saying that all great code earns it's right to become good code by starting as trash...

But I still think we should all quietly and politely let Spring die a simple dignified death, as soon as possible.

Out of wildly morbid curiosity, do Maven and Ant still shit all over each other to make sure no one has any real idea what the build inputs and outputs are?

I shouldn't ask things I don't really want to know, though. My inbox is gonna be full of Java apologists.

[–] [email protected] 3 points 6 months ago* (last edited 6 months ago) (1 children)

No idea, I've never used either of those tools.

I think some people still use Maven, but I use Gradle in all of mine. Gradle build files are written in Kotlin instead of XML like Maven.

[–] [email protected] 1 points 6 months ago

No idea, I've never used either of those tools.

That's a relief to hear. They were quite bad. Or rather, the way most teams used them was quite bad.

I've heard nice things about Gradle. Of course that was mainly from people with deep psychological scars after working with Ant and Maven...

[–] [email protected] 3 points 6 months ago* (last edited 6 months ago)

Thanks, my works' codebase feels old now.

load more comments (4 replies)
load more comments (15 replies)
load more comments (17 replies)