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

Programmer Humor

26673 readers
1605 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
[–] peoplebeproblems@midwest.social 6 points 1 week ago (2 children)

Is this why a bunch of us senior engineers have been forced into a product owner role?

Because we can somehow deal with string parsing better? Jesus fuck we're doomed

load more comments (2 replies)
[–] peacepath@lemmy.world 5 points 1 week ago (1 children)

Simple javscript casting, if the string contains at least one char, it means yes ; else it means no.

[–] Valmond@lemmy.world 3 points 1 week ago (1 children)
[–] peacepath@lemmy.world 3 points 1 week ago

I think javscrpit caste the strings "0" and "false" to true, yes...

When you ask someone a linguistics question and they answer in COBOL

[–] teegus@sh.itjust.works 4 points 1 week ago

Kash Patel when asked if trump is in the Epstein files be like

[–] Sunsofold@lemmings.world 4 points 1 week ago (1 children)

TypeError:
Type Boolean not used by Reality, please inplort module 'ImaginaryThings' to use type Boolean.
Warning: Use of module 'ImaginaryThings' may produce inconsistent results.

load more comments (1 replies)
[–] danc4498@lemmy.world 3 points 1 week ago

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

[–] joyjoy@lemmy.zip 3 points 1 week ago
declare function permission(): 'allow' | 'deny' | 'always'
[–] stupidcasey@lemmy.world 3 points 1 week ago (1 children)

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

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

So you return a list of booleans?

load more comments (1 replies)
[–] fishsayhelo@lemmy.ml 3 points 1 week ago

2010 arse meme

[–] goatinspace@feddit.org 2 points 1 week ago
[–] Bakkoda@sh.itjust.works 2 points 1 week ago

"JAVA solves this problem by ..."

  • RIT in the fall, 2001
[–] tetris11@feddit.uk 2 points 1 week ago* (last edited 1 week ago) (1 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

[–] Subscript5676@lemmy.ca 6 points 1 week ago (1 children)

Not in my functional language with no nulls :P

load more comments (1 replies)
[–] danc4498@lemmy.world 2 points 1 week ago
[–] hemmes@lemmy.world 1 points 1 week ago

It’s just being enumerated!

[–] yagurlreese@lemmy.world 1 points 1 week ago

true || response == "true" 🤣

[–] PattyMcB@lemmy.world 1 points 1 week ago

Ah, so you know my ex

[–] knightly@pawb.social 1 points 1 week ago

Sometimes my thoughts have bonus content. =3

load more comments
view more: ‹ prev next ›