this post was submitted on 12 Jul 2025
148 points (99.3% liked)
Programmer Humor
37254 readers
28 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
Ok, I get that the Date API is problematic, but I wouldn't expect anything meaningfull from
new Date("not a date").getTime()
anyway. Why would you in the first place?Parsing user input? Nonsense data coming from an API?
If you’re expecting shit data then you’d have unit tests for those cases so you’d know what to expect.
Maybe you don't expect shit data; you just get it. I know, always expect it....