Honestly I don't hate the language itself that much (I'm just learning it though so who knows) but developing with it fucking sucks. First npm installs a thousand dependencies, then you have to use it to install an entirely different package manager (yarn) and hope it works.

If you're using npm, you install a package or two that you're working with and get 10+ vulnerabilities. It tells you to run "npm audit fix" so you do it, but it just lists the vulnerabilities again and tells you to run "npm audit fix", so apparently you're just stuck with those.

Then you try running your react app and it crashes with an error about failing to stat a random file in your home directory. It turns out that you mistyped an import, and instead of giving an error about that it recursively backs up and checks every single file to see if it's the one it's looking for. Cool.

  • crime [she/her, any]
    ·
    3 years ago

    Javascript is a fucking nightmare to work with. I pretty much won't touch it unless I absolutely have to. The conventions are inscrutable, the frameworks are a bloated mess, and the ecosystem is garbage.

    Even the "good" package managers designed to make NPM less of a nightmare are extremely stressful — why did yarn install four different versions of babel? Who knows! Welcome to dependency hell!

    • eduardog3000 [he/him]
      ·
      3 years ago

      Don't forget you have to globally install an old version of yarn to use it to locally install the current version of yarn in each project.

      • crime [she/her, any]
        ·
        3 years ago

        I had forgotten but yep you're right, I do absolutely hate that :agony: