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

Programmer Humor

32448 readers
943 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
[–] Coskii@lemmy.blahaj.zone 26 points 1 week ago

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

[–] Email@lemmy.world 7 points 1 week ago (2 children)
[–] davel@lemmy.ml 6 points 1 week ago

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

[–] affiliate@lemmy.world 4 points 1 week ago

Treat OR NO Trick

[–] tetris11@lemmy.ml 7 points 1 week ago* (last edited 1 week 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*

[–] Turbonics@lemmy.sdf.org 6 points 1 week ago

Smol chance for and

[–] fubarx@lemmy.ml 4 points 1 week ago
  • RPN: OR Trick Treat

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

[–] CanadaPlus@lemmy.sdf.org 3 points 1 week 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.

[–] N0x0n@lemmy.ml 2 points 1 week ago* (last edited 1 week 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@lemmy.world 5 points 1 week ago* (last edited 1 week 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.

[–] LodeMike@lemmy.today 2 points 1 week ago* (last edited 1 week ago)

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

[–] captain_aggravated@sh.itjust.works 1 points 1 week ago (1 children)

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

[–] HereIAm@lemmy.world 1 points 1 week ago (1 children)

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