KDE Social
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
@tfm@europe.pub to Programmer Humor@lemmy.ml • 1 month ago

JavaScript is awesome

jsdate.wtf

external-link
message-square
25
fedilink
  • cross-posted to:
  • programmer_humor@programming.dev
  • programming@programming.dev
151
external-link

JavaScript is awesome

jsdate.wtf

@tfm@europe.pub to Programmer Humor@lemmy.ml • 1 month ago
message-square
25
fedilink
  • cross-posted to:
  • programmer_humor@programming.dev
  • programming@programming.dev
new Date("wtf")
jsdate.wtf
external-link
How well do you know JavaScript's Date class?

cross-posted from: https://programming.dev/post/33754840

new Date(“wtf”)

  • blaue_Fledermaus
    link
    fedilink
    15•1 month ago

    Parsing user input? Nonsense data coming from an API?

    • @pixely@lemmy.world
      link
      fedilink
      0•
      edit-2
      1 month ago

      If you’re expecting shit data then you’d have unit tests for those cases so you’d know what to expect.

      • @WildPalmTree@lemmy.world
        link
        fedilink
        4•1 month ago

        Maybe you don’t expect shit data; you just get it. I know, always expect it…

Programmer Humor@lemmy.ml

!programmerhumor@lemmy.ml

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: !programmerhumor@lemmy.ml

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.
  • 435 users / day
  • 874 users / week
  • 3.6K users / month
  • 8.87K users / 6 months
  • 37.9K subscribers
  • 1.83K Posts
  • 39K Comments
  • Modlog
  • mods:
  • @cat_programmer@lemmy.ml
  • @AgreeableLandscape@lemmy.ml
  • BE: 0.19.3
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org