UmU
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
OsrsNeedsF2P@lemmy.ml to Programmer Humor@programming.dev · 4 days ago

parseInt(5)

lemmy.ml

message-square
66
fedilink
498

parseInt(5)

lemmy.ml

OsrsNeedsF2P@lemmy.ml to Programmer Humor@programming.dev · 4 days ago
message-square
66
fedilink
  • heavy@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    4
    ·
    4 days ago

    Theoretically, Javascript is an untyped language, so there aren’t supposed to really be static types. Giving type errors in this situation would be against design.

    • jjjalljs@ttrpg.network
      link
      fedilink
      arrow-up
      29
      ·
      4 days ago

      Maybe the design is bad, then.

      • heavy@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        5
        ·
        4 days ago

        Lol you’ll get no argument from me. It’s not my favorite language.

    • bleistift2@sopuli.xyz
      link
      fedilink
      English
      arrow-up
      7
      ·
      4 days ago

      JavaScript has types and it does have type errors, for instance

      > null.foo
      Uncaught TypeError: null has no properties
      

      Please stop spouting nonsense on issues you know nothing about.

      • heavy@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        1
        ·
        4 days ago

        Dynamic types aren’t static types my man. I think you got some learning to do.

        • Victor@lemmy.world
          link
          fedilink
          arrow-up
          5
          ·
          4 days ago

          You did say untyped though.

          • heavy@sh.itjust.works
            link
            fedilink
            English
            arrow-up
            1
            ·
            4 days ago

            Lol like facilitate versus effectuate

    • zqwzzle@lemmy.ca
      link
      fedilink
      English
      arrow-up
      1
      ·
      4 days ago

      Theoretically, Javascript is an untyped language…

      Function only handles string arguments correctly. Wat.

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: [email protected]

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.

  • 699 users / day
  • 4.53K users / week
  • 8.92K users / month
  • 17.3K users / 6 months
  • 2 local subscribers
  • 23.1K subscribers
  • 1.25K Posts
  • 39.4K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.9
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org