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

Programmer Humor

19463 readers
212 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
[–] gravitas_deficiency@sh.itjust.works 37 points 10 months ago (2 children)

I want to hate this. I really do. But the problem is… I think I like it.

[–] naonintendois@programming.dev 13 points 10 months ago (2 children)

But how do I know if the WHERE clause is AND or OR?

[–] akash_rawal@lemmy.world 5 points 10 months ago (1 children)

We can say default is and and add an Or node for or. Similar to SoP notation, you only write +.

[–] victorz@lemmy.world 1 points 10 months ago

How about an or boolean attribute.

[–] gravitas_deficiency@sh.itjust.works 3 points 10 months ago* (last edited 10 months ago)

Fair. The constraint nodes should probably exist under an And or Or node.

[–] lorty@lemmygrad.ml 2 points 10 months ago

This needs a bit of work but it could be interesting