Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
function reply(question) {
try {
var brain = new NLP();
brain.process(question);
return brain.getAnswer();
}
catch (err) {
return "yes"
}
} -
kamen69844y@AtuM That's kind of writing an if statement without saying where the if braces start and end and where the ones for the else do.
-
Flygger19814yI'd usually use that answer when I'm equally satisfied with either option, specifying an answer to the question instead of one of the options, e.g. "Would you like to get pizza or sushi?" => yes (I would like to get pizza or sushi)
This works mainly because people use sloppy semantics and I have very broad preferences... -
kamen69844yI missed some words there. My point is that trying to make a parallel between code and natural language isn't exactly sensible.
-
This is not just nerdy thinking. I once travelled with a Japanese guy and when they asked him "do you like coffee or tea", he replied "yes!"
Related Rants
Someone mentioned being frustrated with people who answer "either/or" questions with "yes". I figured out why. They are not human. They are a robot and their processing of language is failing.
A simple question:
Q: The car is red or the car is green?
A: Yes
Breakdown:
The car is red. Yes, True
The car is green. No, False
The car is red OR the car is green.
True OR False
True || False = True
True = Yes
So they dissected the language like a computer treating "or" as a logical OR. This proves they are a robot pretending to be human. They failed the Turing test.
joke/meme
logic
turing test
robot