• palordrolap@fedia.io
      link
      fedilink
      arrow-up
      26
      ·
      10 months ago

      As at least one nautically themed childrens’ book surely has it: C is for crab.

      Coming at programming sideways feels more like a Haskell or Prolog thing, though.

    • sbv@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      23
      ·
      10 months ago

      I feel like Rust would be some complaint from the compiler saying that some apparently unrelated struct can’t be Send/Sync for some inscrutable reason. Or something about pinning a future.

      • CEbbinghaus@lemmy.world
        link
        fedilink
        arrow-up
        43
        ·
        10 months ago

        I would disagree. Especially since unlike npm every part of cargo was through through with all the experience and knowledge gained from npm, pip, nuget & co.

        I have a LOT more problems with npm over cargo. Also it’s 1 tool and not 100 different tools to do the same job (npm, pnpm, yarn, bun, deno, etc…)

    • Sylvartas@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      19
      ·
      10 months ago

      C++ is home sick, currently the doctor (compiler) is not sure whether it’s got the flu or a terminal cancer.

      • epicstove@lemmy.ca
        link
        fedilink
        English
        arrow-up
        14
        ·
        10 months ago

        terminal cancer

        “I’m sorry, you’ve been diagnosed with :()::&;:”

        “You have a couple seconds to live.”

  • lobut@lemmy.ca
    link
    fedilink
    arrow-up
    30
    ·
    10 months ago

    Not a word of a lie, I saw a “segmentation fault” error in JavaScript.

    Can’t remember how we resolved it, but it did blow my mind.

    • jj4211@lemmy.world
      link
      fedilink
      arrow-up
      10
      ·
      10 months ago

      Technically any language runtime can end in a segmentation fault.

      For some languages, in principle this shouldn’t be possible, but the runtimes can have bugs and/or you are calling libraries that do some native code at some point.

    • olenko@feddit.nl
      link
      fedilink
      arrow-up
      6
      ·
      10 months ago

      I have seen a Java program I wrote terminate with SIGSEGV. I think a library was causing it.

  • grue@lemmy.world
    link
    fedilink
    arrow-up
    19
    ·
    10 months ago

    This implies that Javascript will get moving in the correct direction once it finishes installing dependencies, but it’s just going to get fucked with incorrect behavior that doesn’t even have the courtesy to throw an actual error.

    • jj4211@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      10 months ago

      incorrect behavior that doesn’t even have the courtesy to throw an actual error.

      To be fair, this can be said of C. A C executable only really forces a crash out when you royally screw up beyond the bounds of your memory. Otherwise functions just return a negative value and calling code that never bothers to check just keep on going.

      Golang is similar, slightly mitigated that if you are assigning any return value from a function, you must also explicitly receive an error and you know full well that you are being lazy if you don’t handle it. Well unless you use a panic/recover scheme but golang community will skewer you alive for casually suggesting that and certainly third party libraries aren’t going to do it that way.

    • mmddmm@lemm.ee
      link
      fedilink
      arrow-up
      6
      ·
      10 months ago

      Yep, it’s the one starting everything.

      And doing nothing else. And still something manages to no be right.

  • Redkey@programming.dev
    link
    fedilink
    arrow-up
    5
    ·
    10 months ago

    “NPM install” isn’t going to be the direct result of a race condition in JavaScript. And while I’m not familiar with Python, I’d guess that an “Indentation error” wouldn’t be one either. A missing library or syntax error that’s only discovered by executing a particular branch is still just a missing library or syntax error, not a race condition.

    Also, while Node.js is popular, it isn’t an integral part of JavaScript in the way that the other errors are integral to their respective languages.

    • lime!@feddit.nu
      link
      fedilink
      English
      arrow-up
      15
      ·
      10 months ago

      none of these are race conditions, they’re just runtime errors. python only parses code when it is about to run that block so you can absolutely get a crash from bad indentation.

      in my experience, the js world’s focus on developer ergonomics has absolutely yielded some insane situations where running an installed script has caused it to start downloading more dependencies. however, this has unfortunately started happening in python too lately.

    • 0x0@lemmy.zipOP
      link
      fedilink
      arrow-up
      5
      ·
      10 months ago

      I had to come up with a title, this was it.
      It’s a cartoon.