594
if 1: return True (sh.itjust.works)
submitted 3 weeks ago* (last edited 3 weeks ago) by Ragdoll_X@sh.itjust.works to c/programmer_humor@programming.dev

Soy 0 got truthmogged by chad 1 ๐Ÿ˜Ž

you are viewing a single comment's thread
view the rest of the comments
[-] ZILtoid1991@lemmy.world 32 points 3 weeks ago

Now get ready for fuzzy logic!

  • -1.0 = false
  • 0.0 = neutral
  • 1.0 = true

Also now you know more about AI than most AI bros on the internet.

[-] kubica@fedia.io 1 points 3 weeks ago

The not so funny thing is that if you try this in scripting languages -1 and 1 are both truthy so...

[-] ZILtoid1991@lemmy.world 1 points 3 weeks ago

Because you need to infer the fuzzy boolean as a type (I personally plan to make one that works between -127 and 127, on integers instead of floats), and then write an interpreter to use the values accordingly.

load more comments (2 replies)
this post was submitted on 10 Feb 2026
594 points (96.6% liked)

Programmer Humor

30189 readers
1275 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 2 years ago
MODERATORS