this post was submitted on 27 Dec 2023
484 points (96.7% liked)

Programmer Humor

25448 readers
923 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 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] Witchfire@lemmy.world 131 points 2 years ago* (last edited 2 years ago) (6 children)

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

[โ€“] somePotato@sh.itjust.works 0 points 2 years ago* (last edited 2 years 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.

[โ€“] blackbrook@mander.xyz 0 points 2 years ago (1 children)
[โ€“] shotgun_crab@lemmy.world 1 points 2 years ago

JOOQ made me realize that most ORMs suck

load more comments (4 replies)