this post was submitted on 30 Oct 2024
424 points (99.1% liked)

Programmer Humor

32469 readers
661 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 2 weeks 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 2 weeks ago (2 children)
[–] [email protected] 6 points 2 weeks ago

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

[–] [email protected] 4 points 2 weeks ago

Treat OR NO Trick

[–] [email protected] 6 points 2 weeks ago

Smol chance for and

[–] [email protected] 5 points 2 weeks ago* (last edited 2 weeks 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 protected] 4 points 2 weeks ago
  • RPN: OR Trick Treat

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

[–] [email protected] 3 points 2 weeks 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 2 weeks ago* (last edited 2 weeks ago)

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

[–] [email protected] 2 points 2 weeks ago* (last edited 2 weeks 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?

[–] [email protected] 5 points 2 weeks ago* (last edited 2 weeks 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 2 weeks ago (1 children)

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

[–] [email protected] 1 points 2 weeks ago (1 children)

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