this post was submitted on 13 Mar 2024
1177 points (98.7% liked)

Programmer Humor

19817 readers
65 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
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 12 points 9 months ago (1 children)

How the heck does a system interpret a string value null as a literal null? That seems insane to me that there really is software out there written like this. "null" != null... Or so I thought, maybe there are languages out there that this can happen in easily? Or someone is storing the string value of null in a non nullable database column?

[–] [email protected] 26 points 9 months ago (2 children)

May I introduce you to our lord and savior JavaScript?

[–] [email protected] 10 points 9 months ago
[–] [email protected] 7 points 9 months ago

But even in JavaScript a string representation of null is not equal to a null literal. 'null' or "null" are not the same as null