Author Topic: ilogical resteraunt menu  (Read 3980 times)

0 Members and 1 Guest are viewing this topic.

Offline KerlinTopic starter

  • Regular Contributor
  • *
  • Posts: 181
  • Country: au
ilogical resteraunt menu
« on: January 26, 2024, 01:21:32 am »
Went to a pub, wasn't aware my programmers mind was switched on, read the menu .......Fish with chips and salad or vegetables.
Some one asked can you get chips with vegetables, I checked again and I saw ....Fish with chips and salad, OR vegetables. so I said no you cant.
Because logical complements ( not ) are performed first, logical conjunctions ( and ) are performed next, and logical disjunctions ( or ) are performed next.
Cash register operator said Yes you can get chips with vegatables, so menu should read...........Fish with chips, AND salad OR vegetables.

DOH, Suddenly realized I was thinking in Boolean without even knowing it and went into an LOL when I realized it.

 
« Last Edit: January 26, 2024, 01:24:29 am by Kerlin »
Do you know what the thread is about and are Comprehending what has been said ?
 
The following users thanked this post: boB

Offline PCB.Wiz

  • Super Contributor
  • ***
  • Posts: 1545
  • Country: au
Re: ilogical resteraunt menu
« Reply #1 on: January 26, 2024, 01:44:53 am »
Hehe, just had the same thing happen with a credit card.
It was $5, and terminal menu said PIN OR ENTER
So, I did exactly what it said, and just pressed enter.  8)

It failed, turns out that really mean PIN THEN ENTER ( or PIN AND ENTER)
 
The following users thanked this post: boB

Offline brucehoult

  • Super Contributor
  • ***
  • Posts: 4039
  • Country: nz
Re: ilogical resteraunt menu
« Reply #2 on: January 26, 2024, 01:50:42 am »
Usually that means in you don't have a PIN then you press ENTER and sign instead.

Weirdly, most shops / machines in the USA don't accept PIN verification even when your (foreign) card normally uses one.
 

Offline xrunner

  • Super Contributor
  • ***
  • Posts: 7518
  • Country: us
  • hp>Agilent>Keysight>???
Re: ilogical resteraunt menu
« Reply #3 on: January 26, 2024, 01:54:15 am »
Went to buy some things at Home Depot. At the self checkout I scanned it all and then the option is presented

"PAY NOW"

I asked the lady monitoring the self checkout "Do you know who NOW is? I'm supposed to pay them, but I can't find anyone named "NOW" ???

 :-DD
I told my friends I could teach them to be funny, but they all just laughed at me.
 
The following users thanked this post: 5U4GB

Offline Veteran68

  • Frequent Contributor
  • **
  • Posts: 727
  • Country: us
Re: ilogical resteraunt menu
« Reply #4 on: January 26, 2024, 02:00:09 am »
Usually that means in you don't have a PIN then you press ENTER and sign instead.

Weirdly, most shops / machines in the USA don't accept PIN verification even when your (foreign) card normally uses one.

Yeah here in the US we don't use a PIN for a POS credit transaction, only for debit transactions. And a VISA or MC network debit card can (in most places) be run as credit/signature without a PIN, but the PIN is required if you're getting cash back. The annoying thing is different POS terminals handle this differently -- some expect you to hit ENTER to run a debit card as a signature transaction while others expect you to hit X/CANCEL to do so. At new terminals I inevitably hit the wrong thing and have to start over, LOL.
 

Offline T3sl4co1l

  • Super Contributor
  • ***
  • Posts: 21688
  • Country: us
  • Expert, Analog Electronics, PCB Layout, EMC
    • Seven Transistor Labs
Re: ilogical resteraunt menu
« Reply #5 on: January 26, 2024, 03:15:46 am »
Wife: "Can you go down to the store and get a gallon of milk, and if they have eggs, get six?"

Her programmer husband returned with six gallons of milk.

Tim
Seven Transistor Labs, LLC
Electronic design, from concept to prototype.
Bringing a project to life?  Send me a message!
 
The following users thanked this post: tom66, SeanB, boB, audiotubes, 5U4GB

Offline amyk

  • Super Contributor
  • ***
  • Posts: 8276
Re: ilogical resteraunt menu
« Reply #6 on: January 26, 2024, 03:55:36 am »
That would be much clearer as: Fish with chips and (salad or vegetables) .

 
The following users thanked this post: boB, Faranight

Offline pickle9000

  • Super Contributor
  • ***
  • Posts: 2439
  • Country: ca
Re: ilogical resteraunt menu
« Reply #7 on: January 26, 2024, 04:09:14 am »
crap I've done that
 

Offline 5U4GB

  • Frequent Contributor
  • **
  • Posts: 391
  • Country: au
Re: ilogical resteraunt menu
« Reply #8 on: January 26, 2024, 05:24:04 am »
Because logical complements ( not ) are performed first, logical conjunctions ( and ) are performed next, and logical disjunctions ( or ) are performed next.
Cash register operator said Yes you can get chips with vegatables, so menu should read...........Fish with chips, AND salad OR vegetables.

Did they also back away from you slightly, and cast warning glances to the other staff?
 
The following users thanked this post: RJSV

Online Nominal Animal

  • Super Contributor
  • ***
  • Posts: 6264
  • Country: fi
    • My home page and email address
Re: ilogical resteraunt menu
« Reply #9 on: January 26, 2024, 05:31:40 am »
Am I the only one who always reads POS (point-of-sales) as piece-of-shit?  ???
 
The following users thanked this post: amyk, nctnico, Siwastaja, magic, audiotubes, harerod, 5U4GB

Offline audiotubes

  • Regular Contributor
  • *
  • Posts: 176
  • Country: cz
Re: ilogical resteraunt menu
« Reply #10 on: January 26, 2024, 07:00:36 am »
Am I the only one who always reads POS (point-of-sales) as piece-of-shit?  ???

No, you're not. POS Technology is very much a thing! I remember when CMOS came out, somebody defined what POS meant, even before point of sale was a glint in anyone's eye.

As to the restaurant menu issue, "two from column A and one from column B" is just easier :D
I have taken apart more gear than many people. But I have put less gear back together than most people. So there is still room for improvement.
 

Offline Messtechniker

  • Frequent Contributor
  • **
  • Posts: 782
  • Country: de
  • Old analog audio hand - No voodoo.
Re: ilogical resteraunt menu
« Reply #11 on: January 26, 2024, 07:39:23 am »
Missus: Could you please go down to the basement and see if there is any white wine?
Me: Came back with the answer: "Yes".
Missus: I expected you to bring the white wine!

Girls and boys will never understand each other. Go figure.
Agilent 34465A, Siglent SDG 2042X, Hameg HMO1022, R&S HMC 8043, Peaktech 2025A, Voltcraft VC 940, M-Audio Audiophile 192, R&S Psophometer UPGR, 3 Transistor Testers, DL4JAL Transistor Curve Tracer, UT622E LCR meter
 

Offline babysitter

  • Frequent Contributor
  • **
  • Posts: 893
  • Country: de
  • pushing silicon at work
Re: ilogical resteraunt menu
« Reply #12 on: January 26, 2024, 08:01:34 am »
Hey guys, you know Borat or Ali G or BrĂ¼no?
The actor has a brother.
The actors brother developed a questionaire with a evaluation procedure.
You should consider trying it.

Edit: bold text marks change.
Clarified that its the actors brother, not the brother of the brother of the actor.
This edit itself might be related to the topic.
« Last Edit: January 26, 2024, 08:03:48 am by babysitter »
I'm not a feature, I'm a bug! ARC DG3HDA
 

Offline harerod

  • Frequent Contributor
  • **
  • Posts: 449
  • Country: de
  • ee - digital & analog
    • My services:
Re: ilogical resteraunt menu
« Reply #13 on: January 26, 2024, 07:56:04 pm »
Quote from: Nominal Animal on Today at 06:31:40
Am I the only one who always reads POS (point-of-sales) as piece-of-shit?  ???

I think audiotubes will enjoy this story:
A couple of months ago I attended a wedding reception and this MBA lady was introduced to me by the groom. She explained that her work was related to POS (much more ambiguous the way she expressed herself in German). Well, I bit my tongue and let it go. Sure as heck it turned out that this lady was seated right next to me. A couple of hours later we did some pleasant smalltalk at the table, when I couldn't keep myself from saying "I prefer people to define TLA's before using them with newcomers. Say, for example, in linguistics POS stands for part of speech, but often I see it used for piece of shit. However I assume that you meant point of sales?" After that I had to explain the TLA TLA. Not to be unkind, she took my quip quite gracefully.
 

Online DavidAlfa

  • Super Contributor
  • ***
  • Posts: 5912
  • Country: es
Re: ilogical resteraunt menu
« Reply #14 on: January 27, 2024, 03:45:01 am »
Why did you put yourself at risk for some vegetables?
"Pizza"is much safer, just avoid the pinneapple, Italians said enough is enough, people is getting stabbed with sharp broken pasta.
Hantek DSO2x1x            Drive        FAQ          DON'T BUY HANTEK! (Aka HALF-MADE)
Stm32 Soldering FW      Forum      Github      Donate
 

Offline nctnico

  • Super Contributor
  • ***
  • Posts: 26907
  • Country: nl
    • NCT Developments
Re: ilogical resteraunt menu
« Reply #15 on: January 27, 2024, 01:16:29 pm »
Sometimes I'm outright cruel. A while ago a cassier at a hardware store asked me 'are you in our system yet?' I answered: 'no, I'm standing right here'.

Another one I like to pull out is when people tell me they are looking in their computer. I typically point out that looking at the screen will be more helpfull  >:D


right brainer: you should insist on bracketting... (fish + chip) & (salad | veggy)
In most restaurants you can order whatever you like as they charge for extra side dishes. Only on very rare occasions you'll be told you have to make a choice.
« Last Edit: January 27, 2024, 01:19:41 pm by nctnico »
There are small lies, big lies and then there is what is on the screen of your oscilloscope.
 

Offline IDEngineer

  • Super Contributor
  • ***
  • Posts: 1926
  • Country: us
Re: ilogical resteraunt menu
« Reply #16 on: January 27, 2024, 01:31:34 pm »
At the Post Office, when they display the "does your parcel contain any hazardous materials" prompt, the YES button is green and the NO button is red.

Guess what happens.
 

Offline xrunner

  • Super Contributor
  • ***
  • Posts: 7518
  • Country: us
  • hp>Agilent>Keysight>???
Re: ilogical resteraunt menu
« Reply #17 on: January 27, 2024, 02:30:03 pm »
Was walking around a local hospital while waiting on my mom to finish her appointment with a doctor in another building some years ago. Occasionally they would have tables set up to promote awareness of different health issues with pamphlets and such things to give away.

One time they had a table with these things and two ladies behind it to talk to people. The table had a sign that said -

Fall Prevention

I thought about it for a second and said the following to the ladies -

"I know you have good intentions, but there is no way to prevent Fall. It is caused by the orbit of the Earth and the tilt of its axis. You cannot in any way prevent Fall."

One of the ladies thought about what I said and giggled a bit.

The other one ... well let's just say she was not amused.

 :-DD
I told my friends I could teach them to be funny, but they all just laughed at me.
 
The following users thanked this post: Nominal Animal, RJSV

Online Nominal Animal

  • Super Contributor
  • ***
  • Posts: 6264
  • Country: fi
    • My home page and email address
Re: ilogical resteraunt menu
« Reply #18 on: January 27, 2024, 02:43:17 pm »
It's not the Fall that is nasty; it's the cold hard that hits you when it ends.
 

Offline NorthGuy

  • Super Contributor
  • ***
  • Posts: 3146
  • Country: ca
Re: ilogical resteraunt menu
« Reply #19 on: January 27, 2024, 06:21:43 pm »
That would be much clearer as: Fish with chips and (salad or vegetables) .

If you really a programmer you would think of them as bit flags and the whole expression would be quite different from the naive restaurant approach

Code: [Select]
fish | chips | (choice ? salad : vagetables)
« Last Edit: January 27, 2024, 06:53:15 pm by NorthGuy »
 

Offline electr_peter

  • Supporter
  • ****
  • Posts: 1303
  • Country: lt
Re: ilogical resteraunt menu
« Reply #20 on: January 27, 2024, 08:33:46 pm »
Even logical orders can be confusing

 

Offline IDEngineer

  • Super Contributor
  • ***
  • Posts: 1926
  • Country: us
Re: ilogical resteraunt menu
« Reply #21 on: January 27, 2024, 09:27:06 pm »
Copious use of parentheses resolves questions of precedence, even for those people who don't know the rules. Or those compilers that don't follow the set of rules you think they do.
 

Online coppice

  • Super Contributor
  • ***
  • Posts: 8652
  • Country: gb
Re: ilogical resteraunt menu
« Reply #22 on: January 27, 2024, 09:35:11 pm »
Missus: Could you please go down to the basement and see if there is any white wine?
Me: Came back with the answer: "Yes".
Missus: I expected you to bring the white wine!

Girls and boys will never understand each other. Go figure.
There is a class of person for whom this goes
Missus: Could you please go down to the basement and see if there is any white wine?
Me: If there is, how much should I bring back
Missus: <annoyed rant, because she hadn't thought things through this far, and was hoping someone else would resolve key details>
 

Online coppice

  • Super Contributor
  • ***
  • Posts: 8652
  • Country: gb
Re: ilogical resteraunt menu
« Reply #23 on: January 27, 2024, 09:40:27 pm »
Copious use of parentheses resolves questions of precedence, even for those people who don't know the rules. Or those compilers that don't follow the set of rules you think they do.
Would that really be parentheses, or brackets? Others on this forum make fine distinctions, even though various dictionaries can't agree on the precise meaning of the - various - words (which) can [be] used {to} describe this effect.
 

Offline IDEngineer

  • Super Contributor
  • ***
  • Posts: 1926
  • Country: us
Re: ilogical resteraunt menu
« Reply #24 on: January 27, 2024, 10:56:41 pm »
I meant parentheses, the curved ones, not brackets nor braces. Parentheses are generally the characters used by C and Pascal and their many derivatives, which together represent the largest percentage of present day programming languages, in expressions involving math or logic. Brackets are more commonly used for array indexing and braces for initializing functions, arrays, etc.

I'm sure there are many exceptions and for the intent of this thread we don't need to make a big deal out of that.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf