this post was submitted on 29 Jun 2024
904 points (95.0% liked)
Programmer Humor
37640 readers
877 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 6 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Depends on your language. In PHP nulls are completely sane (weird, but true), same in Typescript etc., while in Java, C#, C++ and similar it's extremely stupid, because any reference type (pointer in C++'s case) can be null and it's hell to work with.
Generally, newer languages (or old languages where the type system itself is new-ish, like PHP and js/ts) handle null sanely.