this post was submitted on 12 Jul 2025
145 points (98.7% liked)
Programmer Humor
37192 readers
523 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
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?Because this is a simplified example? Maybe you create the object in one place (saying something more realistic like "2015" or whatever your inexperience or AI told you to) and use getTime() at a later place where you thought you created it in a correct way.
User input is probably the big one where this API is gonna get stress-tested...