• mlg@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 months ago

    I actually got flagged on reddit for a joke comment I made with a 3 liner code block that had something like thread.kill()

    It thought I was promoting violence lol

    • TexMexBazooka@lemm.ee
      link
      fedilink
      arrow-up
      0
      ·
      2 months ago

      We’re gonna put it on a scheduled repost loop, with it being stickied for at least an hour every post. A different hour each time too.

    • tate@lemmy.sdf.org
      link
      fedilink
      arrow-up
      0
      ·
      2 months ago

      Many here will be seeing this for the first time. For others it will be a fun reminder of something they haven’t seen for a long time. Still others will find it to be the same old tired shit they’re sick of.

      When you see the same old tired shit on Lemmy (or any social media), just move on. There will be plenty that is new to you.

      • ramble81@lemm.ee
        link
        fedilink
        arrow-up
        0
        ·
        2 months ago

        You know I’ve known for decades that -9 is basically “nuke it from orbit”, but does anyone know what the “9” actually means or where it came from?

        • lad@programming.dev
          link
          fedilink
          English
          arrow-up
          0
          ·
          2 months ago

          It’s the number of the signal sent, 9 is for SIGKILL. You can send various signals with kill, and depending on how application was made it may react on all signals with dying, or meaningfully process most of them. Afaik, SIGKILL can’t be processed by the app, and it always means just that: “die already”.

          Checked in Wikipedia, that’s about right but there are more details I left out, mostly because didn’t know about them, too: POSIX signals

            • jaybone@lemmy.world
              link
              fedilink
              arrow-up
              0
              ·
              2 months ago

              In languages like C, your application code can register what is called a signal handler. These functions get called when the process receives a signal. You could do something like reload a config file for example, without the user needing to stop and restart the process.

        • dohpaz42@lemmy.world
          link
          fedilink
          English
          arrow-up
          0
          ·
          2 months ago

          You can use kill -l (lowercase L) to see a list of signals. But IIRC it’s the same as -TERM.

  • ayushnix@lemmy.sdf.org
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 months ago

    inb4 someone takes offense and says how it discriminates and marginalizes and starts a campaign against the authors and calls them *-ist

      • ayushnix@lemmy.sdf.org
        link
        fedilink
        English
        arrow-up
        0
        ·
        edit-2
        2 months ago

        that, and any other thing one can take offense at

        people have started calling Andreas Kling, the guy who’s making Ladybird Web Browser, as sexist and whatnot because he won’t merge PRs which change pronouns in documentation

        • Obinice@lemmy.world
          link
          fedilink
          arrow-up
          0
          ·
          2 months ago

          He refuses to update the identification info for contributers? Why? It’s the least they can do for people who offer their time and expertise for the project.

          Presumably he’d be happy to do so if they got married and changed their name, so it sounds like he’s probably a transphobe, right?

          • lad@programming.dev
            link
            fedilink
            English
            arrow-up
            0
            ·
            2 months ago

            No, it’s when someone wanted to change docs to say “they” when referring to the user. I don’t think it was really necessary, but refusal to do that looks like a statement I don’t like.

          • Kaboom@reddthat.com
            link
            fedilink
            arrow-up
            0
            ·
            2 months ago

            It’s busy work. Reviewing it to make sure they didn’t fuck it up takes away time to do literally anything else. It adds zero value, it only has downsides.

            • GetOffMyLan@programming.dev
              link
              fedilink
              arrow-up
              0
              ·
              edit-2
              2 months ago

              I would say being more inclusive is bringing value.

              There’s a massive issue with women being under-represented in STEM and little things like this only further cement that.

              It’s casual sexism. I’m not suggesting they are intentionally hating on women.

              Assuming it’s a man because it’s programming is fundamentally sexist.

              What downsides would they be?

    • CrayonMaster@midwest.social
      link
      fedilink
      English
      arrow-up
      0
      ·
      2 months ago

      Damn. This would have been a really clever joke if that was a real problem and not just something you made upto feel like your overcoming oppression.

    • Soup@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      2 months ago

      “Wah wah I’m a victim look they’re going to attack me any second now!”

      I hope you figure out whatever’s destroying your sense of self-worth and causing you to attack margainalisized communities to protect what’s left of your ego. That’s both a dig and a genuine dose of sympathy.

      • flerp@lemm.ee
        link
        fedilink
        arrow-up
        0
        ·
        2 months ago

        Wait, what happened here? Is this picture supposed to be offensive somehow? Is there a place you can see deleted lemmy comments like you can see deleted reddit comments?

        • Soup@lemmy.world
          link
          fedilink
          arrow-up
          0
          ·
          2 months ago

          Just someone trying to “get ahead of the people who will complain that it’s not politically correct”. Like, no one is complaining but they’re already mad for…some reason.

        • ayushnix@lemmy.sdf.org
          link
          fedilink
          English
          arrow-up
          0
          ·
          2 months ago

          Is this picture supposed to be offensive somehow?

          It can be, just like how the master-slave thing is supposed to be offensive I guess and anyone who’s fine with using those terms is apparently against minorities and in favor of slavery. ¯_(ツ)_/¯

          People forget that the entire world isn’t the west.

          I didn’t want to get ganged up on and cancelled so I deleted my comment.

      • MonkderVierte@lemmy.ml
        link
        fedilink
        arrow-up
        0
        ·
        2 months ago

        Someone feels called out?

        Some people like to be victim. And some like drama. Augenmass is needed in such cases, instead of joining the drama.

            • lad@programming.dev
              link
              fedilink
              English
              arrow-up
              0
              ·
              2 months ago

              Well, as they say, “common sense is not very common”, but thinking a bit before rushing in may always do good.

              about the "quote"

              It actually should read

              It is sometimes said, common sense is very rare

              as written by Voltaire, it appears, but I didn’t know that and only met derivatives of this quote.

        • Soup@lemmy.world
          link
          fedilink
          arrow-up
          0
          ·
          2 months ago

          No?

          Yes, sometimes it’s better to just leave the shitty person to be shitty but not calling people out also validates their shitty opinions. I’m glad you’re in a place of privilege to just ignore it but maybe practice your own fuckin’ augenmaß and butt out if you don’t have anything constructive to say.

  • Evil_Shrubbery@lemm.ee
    link
    fedilink
    arrow-up
    0
    ·
    2 months ago

    Dumping core

    Oh, thats why captains in Star Trek do it every even remotely excusable change they get.
    (“Why did we dump the core & why did it detonate??” - “I wanted to see if I can brew coffee in the vacuum of space.”)

  • RonSijm@programming.dev
    link
    fedilink
    arrow-up
    0
    ·
    2 months ago

    At some I added logging to a thread pool, when it gave up on child-threads, it would be logging things like

    “Child 123 is being aborted”

    Not the best of phrasing for people that didn’t know what that was about…

  • addie@feddit.uk
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    2 months ago

    A bit like when we renamed all the master/slave terminology using different phrasing that’s frankly more useful a lot of the time, I think it’s about time we got rid of this “child” task nonsense. I suggest “subtask”. Then we can reword these books into something that no-one can make stupid jokes about any more, like “how to keep your subs in line” and “how to punish your subs when they’ve misbehaved”.