this post was submitted on 11 Jul 2025
127 points (99.2% liked)

Programming

21517 readers
334 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities [email protected]



founded 2 years ago
MODERATORS
top 31 comments
sorted by: hot top controversial new old
[–] [email protected] 1 points 40 minutes ago

I scored 10/28 on https://jsdate.wtf/ and all I got was this lousy text to share on social media.

[–] [email protected] 1 points 1 hour ago

12/28

Surprised that I got this score when I only know python

[–] [email protected] 1 points 1 hour ago

This is just a good reminder of human nature to make bad choices (using JS) and stick with them forever.

[–] [email protected] 2 points 1 hour ago

Ha this is even worse than I could have imagined!

[–] [email protected] 1 points 3 hours ago

7/28. Of course no one would ever do most of those things, they are interesting to think about but with little practical use.

[–] [email protected] 1 points 3 hours ago

I don't like calling myself a JS/TS dev but my biggest project that I currently work on is written in it, so I had to try it.

16/28. I mean it's incredible how I can throw a diabolical amount of variations of formatting at it and somehow get valid dates.

[–] [email protected] 3 points 3 hours ago (3 children)

Can we start a new web with a better language/platform already?

[–] [email protected] 1 points 1 hour ago

There's wasm if you need to target browsers.

[–] [email protected] 2 points 1 hour ago

Google tried to do that with Dart, and failed. In fairness Dart 1 was much worse than Dart 2... So maybe that was a good thing because there's no way they'd have been able to improve Dart as much as they have if it was part of the web.

For dates there finally is something better anyway: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal

[–] [email protected] 0 points 2 hours ago (1 children)

Why? Why not improve JS (e.g. with Temporal), especially given how excellent Typescript is?

[–] [email protected] 4 points 2 hours ago (1 children)
[–] [email protected] 0 points 2 hours ago

How? It's easy not to run into the common issues by using TS. What's so bad about it that we should throw away the existing ecosystem?

Please give arguments instead of platitudes.

[–] [email protected] 3 points 3 hours ago

9/28. WTF'ing through 90% of the questions.

[–] [email protected] 6 points 4 hours ago

Nobody understands JavaScript. It's the quantum mechanics of the software world.

[–] [email protected] 9 points 5 hours ago* (last edited 5 hours ago) (1 children)

If you're not very familiar with JS, watch the Wat talk before taking the quiz to know what to expect from this wonderful language.

[–] [email protected] 3 points 3 hours ago

And then promptly get yourself familiar with how the language actually works. https://github.com/getify/You-Dont-Know-JS

People who complain about JS often assume it has features of other languages and fail to realize it has its own architecture and winding history.

[–] [email protected] 5 points 7 hours ago

I scored 17/28 on https://jsdate.wtf/ and all I got was this lousy text to share on social media.

Idk anything about Date but got pretty far with intuition of JS whackiness

[–] [email protected] 14 points 7 hours ago

I scored 13/28 on https://jsdate.wtf/ and all I got was this lousy text to share on social media.

Oof. I’ve been a JS dev since 1998.

[–] [email protected] 6 points 8 hours ago

Thank god Temporal is finally in Stage 3, and already rolled out in Firefox. I can't wait to be done with JS's Date forever.

[–] [email protected] 15 points 8 hours ago

I got 10/28, but I was crying after the 7th question

[–] [email protected] 8 points 8 hours ago (1 children)

I got a 4/28 and got told I would have scored higher if I guessed at random. Ouch. (I am not a dev)

[–] [email protected] 1 points 2 hours ago

I mean, for what it's worth, I'm a seasoned dev and just did a run where I tried to answer everything as it makes sense to me (which is "throws an error" or "invalid date" for all of them) and I also got a score of 4/28.

...and two of those points were given to me, because the quiz interpreted my answer differently than I meant it.

In other words, this quiz exists to highlight that JavaScript's Date functions make no sense.

[–] [email protected] 19 points 8 hours ago

The quirks in this quiz aren’t even universal, and vary based on which browser you’re using. See the table at https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/parse#non-standard_date_strings

Also I got 13/28 😑

[–] [email protected] 8 points 9 hours ago

I did not do well:

"I scored 9/28 on https://jsdate.wtf/ and all I got was this lousy text to share on social media."

Ive been a dev for a long time. Im glad im not doing javascript all that much anymore.

[–] [email protected] 4 points 11 hours ago (1 children)

Great quiz. It teaches you the rules while training you to expect the unexpected, even in the rare cases that the rules are applied consistently.
I got exactly half the questions right.

[–] [email protected] 3 points 11 hours ago (2 children)

I scored 8/28 on https://jsdate.wtf/ and all I got was this lousy text to share on social media.

don't tap for spoilersThe sequence of questions about new Date("0"), new Date("1"), and new Date("2") got me good.

[–] [email protected] 1 points 9 hours ago

Same. I think I got one on accident too.

[–] [email protected] 3 points 10 hours ago

That was so funny, I had to pause taking the quiz I was laughing so hard at question 9. The snark in the explanations is fantastic.

[–] [email protected] 20 points 12 hours ago (2 children)

I am a frontend dev. JavaScript (well, TypeScript) is my bread and butter. Even knowing its quirks I never would have thought how inconsistent Date actually is. I encourage everyone to try this quiz.

This is what JavaScript haters should bring forth, not 0.1 + 0.2 !== 0.3!

[–] [email protected] 9 points 4 hours ago

Floating point rounding issues are basic comp science issues. Hopefully nobody thinks that those are JavaScript quirks.

[–] [email protected] 8 points 11 hours ago

There is a reason almost everyone use some Date lib, like Luxon and not the built in. And well, having a horrible built in lib that they can't change due to legacy code breaking is nothing really new or unique to JS.