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

Programmer Humor

19623 readers
1 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 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] Trollception@lemmy.world 12 points 8 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?

[–] Wirlocke@lemmy.blahaj.zone 26 points 8 months ago (2 children)

May I introduce you to our lord and savior JavaScript?

[–] Trollception@lemmy.world 7 points 8 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