this post was submitted on 27 Dec 2023
6 points (100.0% liked)

Programmer Humor

19154 readers
2012 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] 3 points 8 months ago* (last edited 8 months ago) (1 children)

Honestly more readable than a lot of SQL I've read. It even has hierarchical grouping.

[โ€“] [email protected] 1 points 8 months ago* (last edited 8 months ago) (1 children)

I was disgusted by the XML at first, but it's a readable query returning a sane JSON object.

Meanwhile, I'm mantaining Java code where the SQL is a perfectly square wall of text, and some insane mofo decided the way to read the resulting list of Object[] ๐Ÿคฎ is getting each column by index... so I'd switch to SQXMLL in a heartbeat.

[โ€“] [email protected] 0 points 8 months ago (1 children)
[โ€“] [email protected] 1 points 8 months ago

JOOQ made me realize that most ORMs suck