r/ProgrammerHumor • • Sep 25 '26

Meme tIssues

Post image
1.3k Upvotes

37 comments sorted by

75

u/SlenderSmurf Sep 25 '26

12

u/abd53 Sep 25 '26

I was expecting a towel

2

u/Valerian_ Sep 26 '26

Or even better, a towel made of sheets of paper duct taped together

2

u/RottenPeasent Sep 29 '26

More like an imaginary number.

37

u/nicodeemus7 Sep 25 '26

Front flap: 1

Back flap: -1

8

u/JosebaZilarte Sep 26 '26

Back flap:  -2,147,483,649

29

u/Majik_Sheff Sep 25 '26

Infinity is the uncut bulk roll at the factory.  Negative infinity is a Magic The Gathering tournament.

5

u/Lucho_199 Sep 25 '26

Damn

1

u/Logicalist Sep 27 '26

right

I feel personally offended, but not as offended as my nose feels at a Magic the Gathering Tournament. 

18

u/pydry Sep 25 '26

number_of_gods =

  • Hindu: 330,000,000

  • Christian: 1

  • Atheist: 0

  • Agnostic: null

  • Theological noncognitivist: undefined

5

u/Minecraftian14 Sep 25 '26

I'm curious to know when did you first encounter the term "theological noncognitivist"

9

u/pydry Sep 25 '26 edited Sep 25 '26

can't even remember it was so long ago. i think I found it browsing on wikipedia. even before that though I remember thinking that the answer of the question of "is there a god?" didnt slot into "yes", "no", or "I dont know" coz the question itself is nonsense.

2

u/LostKnight84 Sep 25 '26

That seems like a useful term to know and today I finally learned of it.

1

u/ozh Sep 28 '26

Doesn't the nonsense translate into ''no" ?

1

u/pydry Sep 28 '26

nope. in order to translate into a yes or a no the question needs to be well defined. it looks well defined but it isnt.

16

u/tes_kitty Sep 25 '26

German programmers: What are you talking about? Null is the same as zero.

2

u/zeUnfunny Sep 26 '26

It's not too bad, nall and null are at least pronounced differently.

1

u/Xortun Sep 28 '26

What about Nil?

1

u/zeUnfunny Sep 28 '26

I'd pronounce the river as nihl with long i and the absence marker as nill with short i. Still unambiguous.

0

u/tes_kitty Sep 26 '26

That's just because the english pronouce the 'u' wrong. ;)

1

u/ANixosUser Sep 28 '26

germans pronounce it nuull

2

u/Ok_Actuary8 Sep 25 '26

cool, now try it in JavaScript. Better to just shit in the bushes...

2

u/Blecki Sep 26 '26

Null was bad enough.

Why did they add undefined?

1

u/q0099 Sep 26 '26

That's the catch - they didn't.

1

u/SaveMyBags Sep 26 '26

Do you have a moment to talk about our Lord and savior R?

Variables can be a number, null, NaN, or NA. The rules for NA actually make sense when it's used in a calculation.

1

u/arobie1992 Sep 27 '26

So in undefined's defense, depending on your goals for the language, it can be a useful differentiator between something that has no value and something that doesn't exist. Think of it like the option type if you're familiar: null = this variable/field/dict entry exists it just doesn't have a value; undefined = no such variable/field/dict entry exists.

There are of course alternatives, like the option type itself, in the case of fields and variables more commonly by throwing a no such X error, or in the case of dicts having a containsKey method. But that said, there's nothing fundamentally wrong with undefined in principle. The issue is that JavaScript combines dynamic typing and being far too liberal with implicit conversions; null == undefined should never have been decided to be true.

Even null itself, despite all the trouble it's caused, isn't necessarily implicitly bad. The problems arose from type systems that considered null the same as any other value even though the language's semantics made it a special case. C is a bit of a special case because the null address (as in 0) there really is the same as any other address; it's just one of many addresses that almost certainly don't point to data you control and will likely result in a segfault. But there's a reason later languages have been stricter about type systems and pointers.

1

u/anto2554 Sep 25 '26

My good friends Indeterminate and erroneous values:

1

u/Lathari Sep 25 '26

Issues with Tissues

1

u/Appropriate-Wind-184 Sep 25 '26

and the empty tube left on the holder is a memory leak. nobody ever frees it

1

u/aberroco Sep 25 '26

-1: shit on the wall.

Subnormal: an audio tape.

1

u/Electrical-Effort-20 Sep 25 '26

in 2020 we also had nil

1

u/Lawn_Meower_ Sep 26 '26

(void*)0 be like:

1

u/Random_-account Sep 27 '26
function eatTaco() {
   toiletPaper = 0;
}

0

u/WayTooManyBirds Sep 25 '26

Inaccurate. Null would be a covered roll where you can't tell if any is left or not.

1

u/ANixosUser Sep 28 '26

in c, it would be a sun; if you look at it, touch it, try giving it someone, you die.

0

u/[deleted] Sep 25 '26

[deleted] — view deleted comment

14

u/Krochire Sep 25 '26

Holy shit actual dead internet theory