A wife tells her programmer husband: “Go to the store and buy a gallon of milk. If they have eggs, get six.”

He comes back with six gallons of milk. When she asks why, he replies: “They had eggs".

  • Shady_Shiroe@lemmy.world
    link
    fedilink
    arrow-up
    54
    ·
    11 days ago

    I like this joke better:

    Wife asks her husband if he is too obsessed with his work and if he even he loves her anymore. He assures her that in a list of things he loves the most, she is number 1 on that list. She was satisfied with the answer.

  • Feyd@programming.dev
    link
    fedilink
    arrow-up
    14
    ·
    11 days ago

    I’ve never liked this joke. I guess it’s supposed to be that the husband does the literal action as described, but instead it’s just that they interpreted ambiguity opposite than expected? It just really doesn’t work very well :/

    • jbrains@sh.itjust.works
      link
      fedilink
      arrow-up
      6
      ·
      11 days ago

      Given the stereotypical difficulty of “product folks” and programmers agreeing on and building shared understanding of what to build, this joke seems clear and straightforward. It works because of course, the customer and the programmer failed to agree on something simple.

    • dnick@sh.itjust.works
      link
      fedilink
      arrow-up
      3
      ·
      11 days ago

      Maybe it’s just worse when written. The period at the end of the sentence makes it hard to see how it could be misunderstood.

      To your point though, not sure if I’m aware of any programming language that would continue a statement with a following if block. Far more likely that it would fail due to lack of an element to apply the 6 to rather than having a pointer to the previous object, or he would try getting what ever the literal version of a 6 would be, or maybe some slang version.

        • dnick@sh.itjust.works
          link
          fedilink
          arrow-up
          1
          ·
          6 days ago

          Those would all start with the if, followed by two conditions, not a statement and then an if. There would be a condition to evaluate, followed by then/else?

  • CrypticCoffee@lemmy.ml
    link
    fedilink
    arrow-up
    2
    ·
    9 days ago

    I… like this joke and haven’t heard it before!

    Is this allowed or do I have to shit on it to be cool?