Lemmy.one
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Gsus4@mander.xyz to Programmer Humor@programming.dev · 1 个月前

new Date("wtf")

jsdate.wtf

external-link
message-square
16
fedilink
  • cross-posted to:
  • programmerhumor@lemmy.ml
  • hackernews@lemmy.bestiver.se
  • programming@programming.dev
216
external-link

new Date("wtf")

jsdate.wtf

Gsus4@mander.xyz to Programmer Humor@programming.dev · 1 个月前
message-square
16
fedilink
  • cross-posted to:
  • programmerhumor@lemmy.ml
  • hackernews@lemmy.bestiver.se
  • programming@programming.dev
How well do you know JavaScript's Date class?
alert-triangle
You must log in or # to comment.
  • chocrates@piefed.world
    link
    fedilink
    English
    arrow-up
    44
    ·
    1 个月前

    Hahahaha I hate it

  • JohnnyCanuck@lemmy.ca
    link
    fedilink
    arrow-up
    39
    ·
    1 个月前
    Tap for spoiler

    Except for some reason “2” is interpreted as a month, and the year is set to 2001.

    I’m dead 😭 (and it just gets better from there)

    • brisk@aussie.zone
      link
      fedilink
      arrow-up
      8
      ·
      1 个月前

      This is the one that broke me

  • Gsus4@mander.xyzOP
    link
    fedilink
    arrow-up
    28
    ·
    1 个月前

    It’s like playing https://catmario.eu/

    • TJA!@sh.itjust.works
      link
      fedilink
      arrow-up
      2
      ·
      1 个月前

      Ohh I haven’t seen this game for ages. I think I played this the last time about 15-20 years ago

  • dan@upvote.au
    link
    fedilink
    arrow-up
    26
    ·
    edit-2
    1 个月前

    I’ve been using JS for a long time, and have worked on some date and time libraries, and only got 12/28. Wow there’s a lot of edge cases.

    • zqwzzle@lemmy.ca
      link
      fedilink
      English
      arrow-up
      18
      ·
      edit-2
      1 个月前

      As a non JS dev 15/28 by asking myself “what is the the most non-intuitive/inconsistent behaviour for this API to have?” ¯\(ツ)/¯

  • dumnezero@piefed.social
    link
    fedilink
    English
    arrow-up
    13
    ·
    1 个月前

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

    horrible

  • ggppjj@lemmy.world
    link
    fedilink
    English
    arrow-up
    12
    ·
    1 个月前

    Question 9 broke me.

  • fin@sh.itjust.works
    link
    fedilink
    arrow-up
    10
    ·
    1 个月前

    Absolutely crazy

    spoiler

  • Sʏʟᴇɴᴄᴇ@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    10
    ·
    1 个月前

    I use JS and TS semi-regularly and got 5/28 🤡

  • madcaesar@lemmy.world
    link
    fedilink
    arrow-up
    7
    ·
    1 个月前

    10/28 but a lot of it was guessing lol

    This is some bullshit right here!

  • DeadPixel@lemmy.zip
    link
    fedilink
    arrow-up
    5
    ·
    1 个月前

    🤯

  • HappyFrog@lemmy.blahaj.zone
    link
    fedilink
    arrow-up
    4
    ·
    1 个月前

    Ah yes… JS, the BS of the CW

  • ma1w4re@lemmy.zip
    link
    fedilink
    arrow-up
    3
    ·
    1 个月前

    13/28, last time I touched JavaScript was about 3 years ago. What a terrible language. Love it.

  • InnerScientist@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    1 个月前

    Thanks,

Programmer Humor@programming.dev

programmer_humor@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmer_humor@programming.dev

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 2.8K users / day
  • 5.75K users / week
  • 9.27K users / month
  • 19.8K users / 6 months
  • 197 local subscribers
  • 25.8K subscribers
  • 1.68K Posts
  • 62.6K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.7
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org