this post was submitted on 27 Dec 2023
376 points (96.1% liked)

Programmer Humor

19564 readers
1412 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] 114 points 10 months ago* (last edited 10 months ago) (7 children)

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

[โ€“] [email protected] 36 points 10 months ago* (last edited 10 months ago) (4 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] 1 points 10 months ago (1 children)
[โ€“] [email protected] 1 points 10 months ago

JOOQ made me realize that most ORMs suck

load more comments (2 replies)
load more comments (4 replies)