minigubben's lemmy
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
ChubakPDP11+TakeWithGrainOfSalt@programming.dev to Programmer Humor@programming.dev · 1 year ago

Can someone explain why authors do this?

programming.dev

message-square
53
fedilink
436

Can someone explain why authors do this?

programming.dev

ChubakPDP11+TakeWithGrainOfSalt@programming.dev to Programmer Humor@programming.dev · 1 year ago
message-square
53
fedilink
alert-triangle
You must log in or # to comment.
  • Turun@feddit.de
    link
    fedilink
    arrow-up
    179
    ·
    edit-2
    1 year ago

    It’s a more easily readable drop in for A and B. And it being convention helps remove one unfamiliar element from a new topic.

    • ValiantDust@feddit.de
      link
      fedilink
      arrow-up
      79
      arrow-down
      1
      ·
      1 year ago

      Not only more readable than A and B but I would argue it’s also easier to remember who did what a few sentences or paragraphs earlier since Alice and Bob invoke slightly less generic mental images than A and B. For example one is a woman and the other one is a man, maybe even some person or character you know.

      And now that I’m thinking about it, the different gender also makes it easier to keep track of who does what because different pronouns are used (at least in English and many other languages).

      • CosmicTurtle@lemmy.world
        link
        fedilink
        English
        arrow-up
        58
        ·
        1 year ago

        If you ever go to r/relationship_advice and read posts where their friend T did S with P and then A (23 F) got into with G, then yeah…Alice and Bob suddenly makes a lot of sense.

        • sawdustprophet@midwest.social
          link
          fedilink
          English
          arrow-up
          26
          ·
          1 year ago

          T did S with P and then A (23 F) got into with G

          “This B needs a C in her A”

          • EatATaco@lemm.ee
            link
            fedilink
            English
            arrow-up
            8
            ·
            1 year ago

            Old guy moment here. . .why the fuck is the camera moving all over in the place in that video? Literally unwatchable to me.

            • GregorTacTac@lemm.ee
              link
              fedilink
              arrow-up
              7
              ·
              1 year ago

              Oh, I didn’t even notice. Probably some artistic stuff, but I would prefer if it was more stable.

            • jcg@halubilo.social
              link
              fedilink
              arrow-up
              1
              ·
              1 year ago

              I guess it’s cause they’re on a cruise ship

      • Exocrinous@lemm.ee
        link
        fedilink
        English
        arrow-up
        6
        ·
        1 year ago

        Fun fact: the problem this is a solution to is known as the gay spock problem

        • Knedliky@discuss.tchncs.de
          link
          fedilink
          arrow-up
          10
          ·
          1 year ago

          I tried to look this up and while there were many many results, none of them seemed to really fit with OP’s question, so would you kindly tell us more about the gay Spock problem?

          • Exocrinous@lemm.ee
            link
            fedilink
            English
            arrow-up
            10
            ·
            1 year ago

            The gay spock problem is when you have two characters interacting who have the same pronouns, and it gets confusing. For example,

            He brushed his hair aside and spoke gently into his ear, “you are my one true love, my light and laughter, my reason to live.”

            Who’s the one speaking? Kirk or Spock?

            Likewise, if Alice and Barbara or Adam and Bob are your two example people, you’ll run into the gay spock problem.

            • Wirrvogel@feddit.de
              link
              fedilink
              English
              arrow-up
              5
              ·
              1 year ago

              Thank you for your explanation. Google gave me a lot of insight into a lot of things and none had to do with this problem. :D

        • ValiantDust@feddit.de
          link
          fedilink
          arrow-up
          3
          ·
          edit-2
          1 year ago

          I’m afraid I’m not following. The solution to what?

          Edit: Sorry, I misread your comment.

          • charolastra@programming.dev
            link
            fedilink
            arrow-up
            1
            ·
            1 year ago

            Took me a few reads

      • Alien Nathan Edward@lemm.ee
        link
        fedilink
        English
        arrow-up
        2
        ·
        1 year ago

        this, but doubly so with Eve. You’ll notice that we often skip over Cindy and Dave and go right to Eve, so often that I don’t even know off the top of my head whether Charlie and Deandra are the conventional names for persons 3 and 4 in this construct. That’s because this construct is used a lot when talking about secure communications and the convention is that “evil” “eavesdropping” Eve is the person trying to destroy, intercept or alter the communication between Alice and Bob. Her role is built into her name.

  • oo1@kbin.social
    link
    fedilink
    arrow-up
    105
    arrow-down
    1
    ·
    1 year ago

    Someone tried “April & Bob” once, but MS excel converted it to date.

    • 𝕱𝖎𝖗𝖊𝖜𝖎𝖙𝖈𝖍@lemmy.world
      link
      fedilink
      arrow-up
      93
      arrow-down
      1
      ·
      edit-2
      1 year ago

      Incels 🤝 Excel
      Falsely assuming something is a date

  • Rusty@lemmy.ca
    link
    fedilink
    English
    arrow-up
    66
    ·
    1 year ago

    Relevant xkcd

    • blindsight@beehaw.org
      link
      fedilink
      arrow-up
      20
      ·
      1 year ago

      Alt text:

      Changing the names would be easier, but if you’re not comfortable lying, try only making friends with people named Alice, Bob, Carol, etc.

      XKCD isn’t complete without the alt text.

      • LinearArray@programming.dev
        link
        fedilink
        English
        arrow-up
        4
        ·
        1 year ago

        I love XKCDs for these

  • jet@hackertalks.com
    link
    fedilink
    English
    arrow-up
    34
    ·
    1 year ago

    Because the names by themselves give you context about who’s transmitting to who, who’s trying to eavesdrop, and it’s become a convention.

    The convention isn’t necessary, but it makes material easier to understand because of the convention

    • mox@lemmy.sdf.org
      link
      fedilink
      arrow-up
      55
      ·
      1 year ago

      Alice: Point A
      Bob: Point B
      Eve: Eavesdropper
      Mallory: Malicious Actor

      • MagosInformaticus@sopuli.xyz
        link
        fedilink
        English
        arrow-up
        41
        ·
        1 year ago

        Nobody ever considers Eve’s side.

        • jballs@sh.itjust.works
          link
          fedilink
          English
          arrow-up
          9
          ·
          1 year ago

          Damn there really is an XKCD for everything

        • fluxion@lemmy.world
          link
          fedilink
          English
          arrow-up
          1
          ·
          1 year ago

          Then you got guys like Alan Turing who couldn’t even talk about how they saved the world eavesdropping

  • PapstJL4U@lemmy.world
    link
    fedilink
    English
    arrow-up
    33
    ·
    1 year ago

    A,B,C,D - A talks to B, C listens to A,…

    Alice, Bob, Charlie,…

    For this reason the first persona in my software is always Alice Litte, alice@wonderland.uk. Easier than “asfgg afshd”

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

    Same as foo, bar, baz 🙄

    CC BY-NC-SA 4.0

    • verstra@programming.dev
      link
      fedilink
      arrow-up
      16
      ·
      1 year ago

      why do you provide a link to creative commons license? Ive seen such links few times on lemmy.

      • gallopingsnail@lemmy.sdf.org
        link
        fedilink
        arrow-up
        22
        ·
        1 year ago

        This guy licenses his comments under creative commons for some reason.

        • wurstgulasch3000@lemmy.world
          link
          fedilink
          arrow-up
          8
          ·
          1 year ago

          Tryin to make a change :-/

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

            Thank you for recognising that.

            CC BY-NC-SA 4.0

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

              But whats the point of giving out a license along the comment? Are you giving permission to use your comment?

              • k110111@feddit.de
                link
                fedilink
                arrow-up
                1
                ·
                1 year ago

                Maybe it has to do with people stealing content to train AI? Atleast now if there is an opportunity to be a part of a lawsuit or smth they can claim they provided a licence. I dunno just a guess

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

                For non-commercial use, yes. Aka no closed-source AI.

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

                  Aaah, AI training data. That makes sense now

        • OneCardboardBox@lemmy.sdf.org
          link
          fedilink
          English
          arrow-up
          7
          arrow-down
          3
          ·
          1 year ago

          Same as foo, bar, baz, bizzle, and bebop 😋

          Adapted from OnlinePersona@programming.dev, no endorsement of this comment is implied.

          CC BY-NC-SA 4.0

    • Owljfien@iusearchlinux.fyi
      link
      fedilink
      English
      arrow-up
      6
      arrow-down
      1
      ·
      1 year ago

      I hate foo bar etc, seems like a joke that was cringe that has gone on too long. When I was trying to learn programming I was like what the actual hell does this shit mean?

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

        Same. Really thought it was a joke until I saw it all over the place. It really isn’t that hard to think of random names.

        CC BY-NC-SA 4.0

        • SpongeBorgCubePants@lemmy.world
          link
          fedilink
          arrow-up
          1
          ·
          1 year ago

          It’s better to have a convention that makes it easy to spot example names

  • Codex@lemmy.world
    link
    fedilink
    arrow-up
    27
    ·
    1 year ago

    I used to have a big list of gender ambiguous names I’d use for examples. So I’d use “Alex” and “Blake” or something like that. It also had some non-anglo names on it, just to spice things up.

    In comp sci papers there’s a few other common example people. “I” for intruder or imposter (Irene, Isaac). “M” often for malicious or middle-person (Mal). There’s a few more im forgetting now.

    • AeonFelis@lemmy.world
      link
      fedilink
      arrow-up
      8
      ·
      1 year ago

      There’s a few more im forgetting now.

      ‘E’ (Eve) for “eavesdropper”.

  • xmunk@sh.itjust.works
    link
    fedilink
    arrow-up
    26
    ·
    1 year ago

    Cue the fiddler on the roof music…

    Tradition!

    There’s a helpful wiki article breaking down the full convention https://en.wikipedia.org/wiki/Alice_and_Bob

    • jan teli@lemmy.world
      link
      fedilink
      arrow-up
      20
      arrow-down
      1
      ·
      1 year ago

      ”Tradition is just peer pressure from dead people”
      — some fella on the internet

      • IndiBrony@lemmy.world
        link
        fedilink
        English
        arrow-up
        10
        arrow-down
        1
        ·
        edit-2
        1 year ago

        “Never forget to attribute your quotes to George Carlin” - Leonard Nimoy, probably

        • ReplicantBatty@lemmy.one
          link
          fedilink
          arrow-up
          2
          ·
          1 year ago

          Don’t believe everything you read on the Internet. -Abraham Lincoln

          • xmunk@sh.itjust.works
            link
            fedilink
            arrow-up
            2
            ·
            1 year ago

            “Only a fool would quote anyone but me.” - Oscar Wilde

      • mrkite@programming.dev
        link
        fedilink
        arrow-up
        1
        ·
        1 year ago

        Tradition is just dead people’s baggage. Doug Stanhope.

  • me_jumper@infosec.pub
    link
    fedilink
    arrow-up
    23
    arrow-down
    1
    ·
    1 year ago

    https://en.m.wikipedia.org/wiki/Alice_and_Bob

    • Zoop@beehaw.org
      link
      fedilink
      arrow-up
      2
      ·
      1 year ago

      Thank you! I had no idea what this was talking about but was curious, so this is perfect. I appreciate it!

  • SILLY BEAN@lemmygrad.ml
    link
    fedilink
    arrow-up
    3
    ·
    1 year ago

    okay, writing and computer science have a common problem: names are hard

    • vrek@programming.dev
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      There are two hard challenges in computer science cache invalidation and naming things

      • lhamil64@programming.dev
        link
        fedilink
        arrow-up
        1
        ·
        1 year ago

        And a second problem, off-by-one errors

  • thisismyhaendel@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    1 year ago

    Rip ben bitdiddle

  • THCDenton@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

    They’re by e2e story user names too :D

Programmer Humor@programming.dev

programmer_humor@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmer_humor@programming.dev

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 117 users / day
  • 5.95K users / week
  • 8.35K users / month
  • 12.6K users / 6 months
  • 1 local subscriber
  • 23.7K subscribers
  • 1.44K Posts
  • 45.1K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.7
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org