this post was submitted on 30 Oct 2024
429 points (98.6% liked)

Programmer Humor

32690 readers
310 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
top 14 comments
sorted by: hot top controversial new old
[–] [email protected] 26 points 1 month ago

This has explained the logic gates to me in a way I'd never understood before.. And for that I'm glad.

[–] [email protected] 7 points 1 month ago* (last edited 1 month ago)

Me (15 years old): "Go on then, show us a trick! *snickers derisively*
Me (5 minutes later, wiping the windows): *how the hell did they hide that many eggs under a cape*

[–] Email 7 points 1 month ago (2 children)
[–] [email protected] 6 points 1 month ago

Trick or treat is a threat. They can’t refuse you treats because of the implication.

[–] affiliate 4 points 1 month ago

Treat OR NO Trick

[–] [email protected] 6 points 1 month ago

Smol chance for and

[–] [email protected] 4 points 1 month ago
  • RPN: OR Trick Treat

  • Async multithreading: Treat Trick (loop closed) OR (stack trace)

[–] [email protected] 3 points 1 month ago

So this is one of the cases where XOR is contextually meant by "or". Although people have been known to do trick anyway, and it's of course an empty threat most of the time, so more like treat CONST ~trick. Speaking of, where's my identity, implication, inhibition and null Halloweens?

Trick XNOR treat is the definite chaotic option. Your house gets egged if and only if you give them candy.

[–] [email protected] 2 points 1 month ago* (last edited 1 month ago)

It really bothers me that these aren't organized correctly.

[–] [email protected] 2 points 1 month ago* (last edited 1 month ago) (1 children)

While I do get most of them, I'm really confused by NOR and XNOR.

Why is there suddenly and out of bound mask outside the circles? (If that does make sense :/)

PS: sorry for the serious question XD I probably don't get the joke?

[–] cybervseas 5 points 1 month ago* (last edited 1 month ago)

Outside the circles are the rest of the universe. i.e. all of the spaces where neither TRICK nor TREAT are true.

Edit: oh, why is a face there and not just orange? I think because it's cute.

[–] [email protected] 1 points 1 month ago (1 children)

Would "Trick NOT Treat" include only the area of Trick that does not overlap Treat?

[–] HereIAm 1 points 1 month ago (1 children)

Yes. Pedantically (as if this is a real language to begin with) it would be "Trick AND NOT Treat".