• ruffsl@programming.dev
      link
      fedilink
      arrow-up
      6
      arrow-down
      1
      ·
      1 year ago

      Hear, hear!

      I’d prefer to keep all lang communities on topic. E.g. I occasionally block and unblock !c/programmer_humor when I want to read technical news or just have a laugh. If memes crossed into all local subs, then the noise-to-news ratio couldn’t be customized as easily.

      Although I suppose tagging posts would be a better compromise.
      Does Lemmy support tagging posts, or filtering feeds by tag yet?

      • Vahtos@programming.dev
        link
        fedilink
        arrow-up
        4
        arrow-down
        1
        ·
        edit-2
        1 year ago

        My thoughts exactly. Tagging them (if possible) is OK, but kind of annoying to need to go to all these different communities and filter memes when there is already a dedicated community for programming memes.

        It also may turn off new arrivals that may be looking for a more serious community, and think all/most of the content is memes.

      • Jakob@programming.dev
        link
        fedilink
        arrow-up
        2
        arrow-down
        1
        ·
        1 year ago

        Tagging would make sense if the community becomes larger and naturally people start requesting it. For now, I think memes should stay in Pr. Humor

      • dmad@programming.dev
        link
        fedilink
        arrow-up
        5
        ·
        edit-2
        1 year ago

        xor has the property x ^ x = 0, and x ^ 0 = x. So, x ^ x ^ y = y

        a' = a ^ b
        b' = b ^ a' = b ^ (a ^ b) = a
        a'' = (a ^ b) ^ a = b
        

        This is pretty clever, I’ve never seen this for a swap.

        • ActuallyRuben@actuallyruben.nl
          link
          fedilink
          arrow-up
          2
          ·
          1 year ago

          Couldn’t have explained it better myself. I don’t remember where exactly I first read about this trick, but it’s mainly useful in C or Assembly, as you don’t have to resort to using a third variable/register.