this post was submitted on 29 Dec 2023
224 points (79.8% liked)
Programmer Humor
32361 readers
124 users here now
Post funny things about programming here! (Or just rant about your favourite programming language.)
Rules:
- Posts must be relevant to programming, programmers, or computer science.
- No NSFW content.
- Jokes must be in good taste. No hate speech, bigotry, etc.
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Ooh or "gender = null"
That would be agender.
It's not a gender tho... Or is it?
vsauce music starts playing
Good point!
Null was a mistake (as per what quite a few people say) XD
Don't know if some actual thing saying "undefined" explicitly would/could be any better, though.
There are two kinds of "null" that are often called out as mistakes, you may be thinking of. One is the null reference, as found in languages like C and Java, which Tony Hoare, who created it for ALGOL back in the sixties, has called his "billion dollar mistake". The other is the three-valued-logic of null in SQL, which is almost as bad.
There's nothing wrong with "null", necessarily, in other contexts, although I do think a more clear name for whatever it means in any given context might be better.