this post was submitted on 25 Sep 2025
1093 points (99.2% liked)

Programmer Humor

26611 readers
1682 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
 

Only valid in PHP?

(page 2) 30 comments
sorted by: hot top controversial new old
[–] stupidcasey@lemmy.world 3 points 4 days ago (1 children)

That's when you just shake your head and say True, True.

[–] jaybone@lemmy.zip 0 points 4 days ago (1 children)

So you return a list of booleans?

[–] joyjoy@lemmy.zip 3 points 4 days ago
declare function permission(): 'allow' | 'deny' | 'always'
[–] danc4498@lemmy.world 3 points 4 days ago

Or when you ask them to choose an index from an array and they give you their life story instead.

[–] bier@feddit.nl 1 points 3 days ago

I was just watching this classic video, wich is a great example of the meme

https://youtu.be/thIRJLsnIxY

[–] goatinspace@feddit.org 2 points 4 days ago
[–] Bakkoda@sh.itjust.works 2 points 4 days ago

"JAVA solves this problem by ..."

  • RIT in the fall, 2001
[–] danc4498@lemmy.world 2 points 4 days ago
[–] tetris11@feddit.uk 2 points 4 days ago* (last edited 4 days ago) (2 children)

Boolean functions have potentially infinite return states depending on error handling

  • True
  • False
  • NA
  • NULL
  • Error1 "You done messed up."
  • Error2 "You done messed up differently. But again."
  • Error3 "My tender bosom heaves in anguish"

etc

load more comments (2 replies)
[–] yagurlreese@lemmy.world 1 points 4 days ago

true || response == "true" 🤣

[–] PattyMcB@lemmy.world 1 points 4 days ago

Ah, so you know my ex

[–] knightly@pawb.social 1 points 4 days ago

Sometimes my thoughts have bonus content. =3

[–] hemmes@lemmy.world 1 points 4 days ago

It’s just being enumerated!

load more comments
view more: ‹ prev next ›