86thumbs
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
tfm@europe.pub to Programmer Humor@lemmy.ml · 18 hours ago

JavaScript is awesome

jsdate.wtf

external-link
message-square
19
fedilink
111
external-link

JavaScript is awesome

jsdate.wtf

tfm@europe.pub to Programmer Humor@lemmy.ml · 18 hours ago
message-square
19
fedilink
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@mstdn.io
    link
    fedilink
    arrow-up
    9
    ·
    16 hours ago

    Parsing user input? Nonsense data coming from an API?

    • pixely@lemmy.world
      link
      fedilink
      arrow-up
      2
      arrow-down
      1
      ·
      edit-2
      15 hours 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
        arrow-up
        3
        ·
        13 hours ago

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

Programmer Humor@lemmy.ml

programmerhumor@lemmy.ml

remote_follow_modal_title

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.
community_visibility: public
globe

public_blurb

  • 419 users / day
  • 825 users / week
  • 2.76K users / month
  • 9.87K users / 6 months
  • number_of_local_subscribers
  • 37.2K subscribers
  • 1.78K Posts
  • 37.9K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • cat_programmer@lemmy.ml
  • UI: unknown version
  • BE: 0.19.5
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org