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
 
top 8 comments
sorted by: hot top controversial new old
[โ€“] [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

[โ€“] [email protected] 1 points 8 months ago

I kind of like it. I can understand where it start and end.

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

Honestly not the worst thing Iโ€™ve seen.

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

I'd like you to think for a moment about CTEs, the HAVING clause, window functions and every other funky and useful thing you can do in SQL ... Now just think, do you think that this syntax supports all those correctly?

[โ€“] [email protected] 1 points 8 months ago

sql syntax doesn't support even itself correctly i fail to see your point