Only valid in PHP?

all 74 comments

sorted by: hot top controversial new old
[–] 88 points 1 year ago (14 children)

The only thing worse than that is emailing them a simple boolean question and then your phone rings.

  • source
  • hideshow 14 child comments
  • [–] 18 points 1 year ago (9 children)

    Sounds like you should respond to that with a 400 Bad Request

    The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing).

  • source
  • parent
  • hideshow 9 child comments
  • [–] 6 points 1 year ago (5 children)

    Valid alternatives: 307 temp redirect to mailbox, 402 payment required to endure such pain or the classic 418. I'd go with the 418.

  • source
  • parent
  • hideshow 5 child comments
  • [–] 59 points 1 year ago (5 children)

    Similarly it also grinds my gears when I ask an enum question but they return a bool. I gave multiple options and “yes” was not one of them.

  • source
  • hideshow 5 child comments
  • [–] 19 points 1 year ago (4 children)

    Sounds like a problem in the question. "Yes" is a perfectly valid response to "Do you want eggs or cheese"?

  • source
  • parent
  • hideshow 4 child comments
  • [–] 23 points 1 year ago (3 children)

    Also bad: When you ask XOR questions, but people think they're funny and give you OR answers instead.

  • source
  • hideshow 3 child comments
  • [–] 9 points 1 year ago

    Sometimes, (amongst friends who accept how thoroughly weird I am) I will actually say "XOR" when I want to make my intentions clear. It means that when they give the silly OR answer, I can jokingly chastise them for poor listening. The downside is that they relish the opportunity to give OR answers when I am not sufficiently specific in my question. I reap what I sow ¯_(ツ)_/¯

  • source
  • parent
  • [–] 22 points 1 year ago (1 child)

    "What's the error message?"

    "I don't know, isn't that your job to figure out?"

  • source
  • hideshow 1 child comment
  • [–] 19 points 1 year ago* (last edited 1 year ago) (3 children)

    I like doing the reverse.

    Like if someone asks me if I want A or B, and I'll say yes.

    Logically, as long as I want one of those things, the answer is "true"

    .... People hate talking to me.

  • source
  • hideshow 3 child comments
  • [–] 15 points 1 year ago
    [–] 14 points 1 year ago* (1 child)

    At work, I have a very knowledgeable colleague who is quite the Linux nerd. I have been moved into their department and I feel like they never had the chance to share all of their accumulated knowledge with someone, so they kinda dump it onto me and every little question has the chance to become a lecture. I am very thankful for it though, because I get learn a ton but sometimes you just wanna get a bool, without learning kernel internals that are absolutely not related to the question

  • source
  • hideshow 1 child comment
  • [–] 4 points 1 year ago

    I feel this. I've found that a good response in those circumstances is to say "sorry, can we put a pin in this? I feel like I don't have the capacity to properly process what you're telling me right now, so I'd rather we resume this conversation at a later point. Thanks for helping me figure out [bool question] though."

    It's a useful response if one genuinely is interested to learn, but not at that moment.

  • source
  • parent
  • [–] 23 points 1 year ago (1 child)

    My relationship is the opposite. My wife asks me a boolean question but expects a string response.

  • source
  • hideshow 1 child comment
  • [–] 18 points 1 year ago (1 child)

    People want a yes or no so they can generate their own hallucinated string based on it. The returned string is just trying to get ahead of that.

  • source
  • hideshow 1 child comment
  • [–] 6 points 1 year ago

    Sometimes.

    In those cases, "there isn't a yes/no answer to your question because..."

    I ask my jrs simple yes/no questions all the time.

    Did you open a PR? Does it pass the CI pipeline? Did you write a test for scenario X?

    I'm here to help you, but my time is unfortunately limited. If it takes half of our available time just to drag out of you where you're at we're all worse off for it.

  • source
  • parent
  • [–] 9 points 1 year ago (3 children)
  • [–] 8 points 1 year ago (1 child)
  • [–] 7 points 1 year ago

    Fukin tru tho

  • source
  • [–] 7 points 1 year ago

    I'm throwing a stack trace, alright?

  • source
  • [–] 6 points 1 year ago (2 children)

    Is this why a bunch of us senior engineers have been forced into a product owner role?

    Because we can somehow deal with string parsing better? Jesus fuck we're doomed

  • source
  • hideshow 2 child comments
  • When you ask someone a linguistics question and they answer in COBOL

  • source
  • [–] 5 points 1 year ago (2 children)

    Simple javscript casting, if the string contains at least one char, it means yes ; else it means no.

  • source
  • hideshow 2 child comments
  • [–] 5 points 1 year ago

    "Are you Kolanaki?"

    "Y-E-S."

  • source
  • [–] 4 points 1 year ago (1 child)

    TypeError:
    Type Boolean not used by Reality, please inplort module 'ImaginaryThings' to use type Boolean.
    Warning: Use of module 'ImaginaryThings' may produce inconsistent results.

  • source
  • hideshow 1 child comment
  • [–] 4 points 1 year ago

    Kash Patel when asked if trump is in the Epstein files be like

  • source
  • [–] 2 points 1 year ago
    declare function permission(): 'allow' | 'deny' | 'always'
    
  • source
  • [–] 3 points 1 year ago (2 children)

    That's when you just shake your head and say True, True.

  • source
  • hideshow 2 child comments
  • [–] 3 points 1 year ago

    Or when you ask them to choose an index from an array and they give you their life story instead.

  • source
  • [–] 2 points 1 year ago
    [–] 2 points 1 year ago

    "JAVA solves this problem by ..."

    • RIT in the fall, 2001
  • source
  • [–] 2 points 1 year ago* (2 children)

    Boolean functions have potentially infinite return states depending on error handling

    • True
    • False
    • NA
    • NULL
    • Error1 "You done messed up."
    • Error2 "You done messed up differently. But again."
    • Error3 "My tender bosom heaves in anguish"

    etc

  • source
  • hideshow 2 child comments
  • [–] 6 points 1 year ago (1 child)

    Not in my functional language with no nulls :P

  • source
  • parent
  • hideshow 1 child comment
  • [–] 1 point 1 year ago*

    It still can panic/abort and deadlock/wait infinitely long on most fp languages because that's typically implied. And there isn't actually a way around that because computation almost always can fail or block indefinitely - and if you have a total language you can implement waits for billions of years, which for all practical purposes is "infinitely" long on human time scales.

  • source
  • parent
  • [–] 2 points 1 year ago

    They're not giving you a string, but an error.

  • source
  • [–] 3 points 1 year ago

    2010 arse meme

  • source
  • [–] 1 point 1 year ago

    true || response == "true" 🤣

  • source
  • [–] 1 point 1 year ago

    It’s just being enumerated!

  • source
  • [–] 1 point 1 year ago

    Ah, so you know my ex

  • source
  • [–] 1 point 1 year ago

    I was just watching this classic video, wich is a great example of the meme

    https://youtu.be/thIRJLsnIxY

  • source
  • [–] 0 points 1 year ago

    Sometimes my thoughts have bonus content. =3

  • source