this post was submitted on 10 Feb 2026
567 points (96.6% liked)

Programmer Humor

30796 readers
717 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
 

Soy 0 got truthmogged by chad 1 😎

all 29 comments
sorted by: hot top controversial new old
[–] NaibofTabr 45 points 1 month ago (3 children)
[–] MasterNerd@lemmy.zip 1 points 2 days ago

Nah you're just reading the voltage instead of its logical representation

[–] i_am_tired_boss@lemmy.world 46 points 1 month ago (1 children)

Go back to bed bender, there's no such thing as a 2

[–] ILikeBoobies@lemmy.ca 25 points 1 month ago* (last edited 1 month ago)

https://en.wikipedia.org/wiki/Ternary_computer

Think of the fun we'd have, still no 2 though.

[–] ceenote@lemmy.world 8 points 1 month ago (1 children)

Fake news. There's no such thing as a 2.

[–] ZILtoid1991@lemmy.world 32 points 1 month ago (2 children)

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 1 month ago (1 children)

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 1 month 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.

[–] _cnt0@sh.itjust.works 28 points 1 month ago (1 children)

C be like "this shit is true af" and it's the number 6396128.

[–] jaybone@lemmy.zip 23 points 1 month ago (1 children)

And it’s an error code from a library call, because false means the call succeeded.

[–] _cnt0@sh.itjust.works 9 points 1 month ago (1 children)

This is the way. Exceptions are overrated.

[–] Scrath@lemmy.dbzer0.com 1 points 2 weeks ago

I used to use enums for my return codes.

Then I got pissed I had to add my enum definition to every project I worked on.

I now return integers based on errno

[–] Scoopta@programming.dev 22 points 1 month ago (2 children)
[–] A_norny_mousse@piefed.zip 6 points 1 month ago (1 children)

I'd just like to interject for a moment. What you're refering to as Bash, does in fact apply to all UNIX-like shells.

[–] Scoopta@programming.dev 1 points 1 month ago

Yes I know, I was gonna say "shell is confused" but it just didn't feel like it had the same ring to it

Use perl exec to run a bash script. Now you're confused, too. And not just about why you're using perl.

[–] bampop@lemmy.world 15 points 1 month ago

if (true) return BIG;

[–] A_norny_mousse@piefed.zip 13 points 1 month ago (1 children)

Bool me once, shame on thee. Bool me twice, shame on me.

[–] kubica@fedia.io 2 points 1 month ago

Bool or bool not, there's no twice.

[–] massive_bereavement@fedia.io 12 points 1 month ago

I think some memes should have a sign that says: "You must be this high to ride".

[–] FreshLight@sh.itjust.works 5 points 1 month ago

I think that this couldn't be any funnier.

[–] stupidcasey@lemmy.world 5 points 1 month ago
[–] sbeak@sopuli.xyz 4 points 1 month ago (1 children)
[–] GlenRambo@jlai.lu 2 points 1 month ago

New Drake meme format?

Orange jacket guy, for those that don't know. https://knowyourmeme.com/memes/drakeposting/photos and now you know.