this post was submitted on 16 Jun 2026
430 points (99.3% liked)

Programmer Humor

31862 readers
1185 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 3 years ago
MODERATORS
top 37 comments
sorted by: hot top controversial new old
[–] smaximov@lemmy.world 40 points 1 day ago

BIG_IF_TRUE

[–] fruitcantfly@programming.dev 17 points 1 day ago (2 children)

I prefer the classic Bool:

enum Bool 
{ 
    True, 
    False, 
    FileNotFound 
};
[–] noughtnaut@lemmy.world 2 points 1 day ago* (last edited 1 day ago)

If this classic isn't linked from that Wikipedia article (I never checked) it really should be. Like the "static cling" image, evnen encyclopedias need to know when to step out of formal style. 🤭

[–] DasFaultier@sh.itjust.works 6 points 1 day ago

Ah yes, the three genders.

[–] toynbee@piefed.social 50 points 2 days ago (4 children)

Yes, no, maybe, I don't know, can you repeat the question?

[–] Aurenkin@sh.itjust.works 8 points 1 day ago

You're not the boss of me, now!

[–] Zoop@beehaw.org 2 points 1 day ago (1 children)

You're not the boss of me now! You're not the boss of me now! You're not the boss of me now, and you're not so big! Life is unfair...

[–] toynbee@piefed.social 2 points 1 day ago

Stop singing and get back to work.

[–] Klear@piefed.world 2 points 2 days ago (1 children)
[–] toynbee@piefed.social 3 points 2 days ago (1 children)

I'm curious of what that means, but that link put me through five captchas in a row and I ran out of patience.

[–] Klear@piefed.world 4 points 2 days ago (1 children)

Youtube is giving you captchas? Ouch.

It's a Monty Python sketch. Here it is in text form.

[–] toynbee@piefed.social 4 points 2 days ago

Thanks! I'm on a VPN using graphene, so that's probably why YouTube doesn't like me.

[–] Yorick@piefed.social 25 points 1 day ago (2 children)

May I introduce the VHDL STD library where you can set an output to "don't care":

Wikipedia IEEE-1164

As an embedded electronics engineer discovering VHDL was a blast and a mindfuck!

[–] white_nrdy@programming.dev 13 points 1 day ago

Don't worry, VHDL is still a mindfuck sometimes even after being an FPGA engineer for years (mostly only using VHDL). It's such a cool language, and I am glad you discovered and are enjoying it!

[–] blibla@slrpnk.net 1 points 1 day ago

its just what most people what vall illegal state or impossible?

[–] RustyNova@lemmy.world 41 points 2 days ago (1 children)
[–] Klear@piefed.world 33 points 2 days ago (3 children)
[–] floquant@lemmy.dbzer0.com 28 points 2 days ago (1 children)

FAKE_NEWS (true but I don't like it)

[–] Klear@piefed.world 8 points 2 days ago

I also propose a new binary operator CARES_ABOUT_YOUR_FEELINGS

[–] nimisnimi@lemmy.ca 6 points 2 days ago

and megabool::Statistics

[–] elvith@feddit.org 26 points 2 days ago

DOUBLE_PLUS_UNTRUE

[–] jballs@sh.itjust.works 8 points 1 day ago

While working on some client code, my coworker and I came across a case statement that said something like

if myBoolean == TRUE
then blah
else if myBoolean == FALSE
then blah blah
else if myBoolean is null
then blah blah blah

Ever since we've always laughed at the "trinary bit".

[–] lime@feddit.nu 16 points 2 days ago
[–] ChaoticNeutralCzech@feddit.org 12 points 2 days ago* (last edited 2 days ago)

PANTS_ON_FIRE,

[–] gapa@feddit.nu 12 points 2 days ago (1 children)
[–] Nioxic@lemmy.dbzer0.com 12 points 2 days ago (1 children)
[–] rustydrd@sh.itjust.works 17 points 2 days ago* (last edited 2 days ago)

👎 = false
🫳 = maybe
🤌 = Italian false

[–] bitjunkie@lemmy.world 4 points 1 day ago

I'd have gone with "truthy" and "falsy", but I like the cut of the jib all the same

[–] luciole@beehaw.org 4 points 2 days ago

megabool is_boy(const Coder *coder);

[–] SaharaMaleikuhm@feddit.org 3 points 1 day ago

Damn JavaScript

[–] 33550336@lemmy.world 1 points 1 day ago

This is just reinvention of Łukasiewicz multi-valued logic

[–] ranzispa@mander.xyz 2 points 1 day ago

I'm confused as to the use of double true.

I've been running a query adding TRUE entries to other TRUE entries, but I just get TRUE as result.

[–] daniskarma@lemmy.dbzer0.com 1 points 1 day ago

Quantum computer booleans. True/False/Everything in between.

[–] Mearcfara@lemmy.ml 1 points 1 day ago

missing this_tbh

[–] driving_crooner@lemmy.eco.br 1 points 1 day ago

OK and NOT_OK