not digg
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Sheldan@programming.dev to Programming@programming.dev · 2 days ago

new Date("wtf")

jsdate.wtf

external-link
message-square
53
fedilink
  • cross-posted to:
  • programmer_humor@programming.dev
  • programmerhumor@lemmy.ml
233
external-link

new Date("wtf")

jsdate.wtf

Sheldan@programming.dev to Programming@programming.dev · 2 days ago
message-square
53
fedilink
  • cross-posted to:
  • programmer_humor@programming.dev
  • programmerhumor@lemmy.ml
How well do you know JavaScript's Date class?
  • FizzyOrange@programming.dev
    link
    fedilink
    arrow-up
    5
    ·
    1 day 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

    • sudo_halt@lemmygrad.ml
      link
      fedilink
      arrow-up
      4
      ·
      edit-2
      18 hours ago

      Dart is fucking amazing and it compiles to native code, transpiles to JS (with some restrictions on concurrency because of web workers) and also supports WASM.

      Really if you want to write async and stream based code Dart is very good

Programming@programming.dev

programming@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: !programming@programming.dev

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 !webdev@programming.dev



Visibility: Public
globe

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

  • 459 users / day
  • 1.41K users / week
  • 2.8K users / month
  • 7.15K users / 6 months
  • 3 local subscribers
  • 21.5K subscribers
  • 2.34K Posts
  • 4.58K Comments
  • Modlog
  • mods:
  • snowe@programming.dev
  • Ategon@programming.dev
  • MaungaHikoi@lemmy.nz
  • UlrikHD@programming.dev
  • BE: 0.19.5
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org