this post was submitted on 05 Dec 2024
231 points (93.3% liked)

Science Memes

11453 readers
1202 users here now

Welcome to c/science_memes @ Mander.xyz!

A place for majestic STEMLORD peacocking, as well as memes about the realities of working in a lab.



Rules

  1. Don't throw mud. Behave like an intellectual and remember the human.
  2. Keep it rooted (on topic).
  3. No spam.
  4. Infographics welcome, get schooled.

This is a science community. We use the Dawkins definition of meme.



Research Committee

Other Mander Communities

Science and Research

Biology and Life Sciences

Physical Sciences

Humanities and Social Sciences

Practical and Applied Sciences

Memes

Miscellaneous

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] Hoimo@ani.social 5 points 3 weeks ago (2 children)

So in programming, you'd write 'if' as:
not pizza or fart where the farting is irrelevant until the pizza is involved.

While 'iff' would be:
pizza equals fart where pizza means fart and no pizza means no fart.

I actually wrote iff as (not pizza and not fart) or (pizza and fart) before, and I'm pretty sure that's the way I wrote an iff in production code in the past, but your comment made me realize that "they should be true at the same time" can be tested really easily with equality.

[โ€“] Venator@lemmy.nz 1 points 2 weeks ago

I don't love the pizza fart variable naming convention, but it's better than foobar and I don't have a better suggestion ๐Ÿ˜…

[โ€“] captain_aggravated@sh.itjust.works 1 points 3 weeks ago (1 children)

If not pizza and not fart: pass

If pizza then fart else !fart