• elxeno@lemm.ee
      link
      fedilink
      arrow-up
      102
      ·
      edit-2
      5 months ago

      Look at what you’re missing!

      Edit: also, is-odd depends on is-number

      • boonhet@lemm.ee
        link
        fedilink
        arrow-up
        12
        ·
        edit-2
        5 months ago

        These are both made by the same person from this PR (who also made both the package the PR is on, and the is-number package that is being removed as a dep)

      • JackbyDev@programming.dev
        link
        fedilink
        English
        arrow-up
        6
        ·
        5 months ago

        Heaven forbid they make a package is-even-or-odd with both. Wait. Don’t give them ideas. They’ll just make it depend on both.

    • lockhart@lemmy.ml
      link
      fedilink
      arrow-up
      30
      arrow-down
      2
      ·
      5 months ago

      This can happen in any project that uses dependencies, javascript or not

      • darklamer@lemmy.dbzer0.com
        link
        fedilink
        arrow-up
        50
        ·
        edit-2
        5 months ago

        Sure, but when was the last time you saw, say, a Python project using some third-party library instead of simply calling isnumeric() from the standard library?

        There’s a reason for these jokes always being about Javascript.

        • FlorianSimon@sh.itjust.works
          link
          fedilink
          arrow-up
          19
          arrow-down
          5
          ·
          edit-2
          4 months ago

          Python has other stupid problems related to pip. As much as stupid micro-dependencies suck in Javascript, they’re not the shitshow managing dependencies in Python is. It’s an inefficiency that never actually caused me noticeable issues in my former webdev life.

          And let’s not talk about C++… People reinvent all sorts of wheels all the time because sharing anything is so annoying.

          • boonhet@lemm.ee
            link
            fedilink
            arrow-up
            17
            ·
            5 months ago

            And let’s not talk about C++…

            Don’t worry, people make plenty of jokes about C++ too.

            Hell, people joke about my favourite language too - Cargo build times are a meme unto themselves.

            I don’t think there’s a truly great dependency management system there. Though all in all, I’ve generally had no MAJOR issues with Cargo, Maven or Gradle.

            • FlorianSimon@sh.itjust.works
              link
              fedilink
              arrow-up
              5
              arrow-down
              6
              ·
              5 months ago

              I know it is, and I find it to be a pretty ridiculously complex fix for a self-inflicted wound.

              The disruption it’s caused me outweighs by far any minor inconvenience with the multiplication or micro packages in the NodeJS world. There’s that, and the Python 2 vs 3 shitshow from which the world still hasn’t fully recovered from yet.

              I mean it: Python has no business laughing at Javascript. Get your act together, snek 😜

    • zqwzzle@lemmy.ca
      link
      fedilink
      English
      arrow-up
      11
      ·
      5 months ago

      I only glossed over it… but this looks like it’s trying to check dynamic typing issues? It’s like a statically typed language with extra steps?

      • AVincentInSpace@pawb.social
        link
        fedilink
        English
        arrow-up
        37
        ·
        5 months ago

        I don’t think typescript exists because JavaScript wasn’t designed to be statically typed. I think Typescript exists because JavaScript wasn’t really designed, period.

      • AVincentInSpace@pawb.social
        link
        fedilink
        English
        arrow-up
        18
        arrow-down
        4
        ·
        edit-2
        5 months ago

        Must be pretty good, considering literally every time I check in on the JavaScript community it is somehow more on fire than it was last time. I guess I must have a front row seat to all their misfortune. Either that or they’re just incompetent, but it couldn’t be that, could it?