Open Menu
AllLocalCommunitiesAbout
lotide
AllLocalCommunitiesAbout
Login

When you ask someone a boolean question....... and they return a string

⁨79⁩ ⁨likes⁩

Submitted ⁨⁨8⁩ ⁨hours⁩ ago⁩ by ⁨beep@piefed.world⁩ to ⁨[deleted]⁩

https://media.glamourmagazine.co.uk/photos/6a1055d1a9d691599e465b7e/3:4/w_960,c_limit/Glamour%20UK%20-%20Chloe%20Cherry-Lian%20Benoit-02.jpg

cross-posted from: https://piefed.world/c/shit/p/1239627/when-you-ask-someone-a-boolean-question-and-they-return-a-string

source

Comments

Sort:hotnewtop
  • dismay3915@lemmy.world ⁨24⁩ ⁨minutes⁩ ago

    This belongs to programmer humor. Don’t let us drop type theory and category theory on these poor non-programmers

    source
  • idunnololz@lemmy.world ⁨40⁩ ⁨minutes⁩ ago

    When you ask someone an enum question and they return a boolean.

    source
  • python@lemmy.world ⁨6⁩ ⁨hours⁩ ago

    Deep down, it’s all [Object object] anyways

    source
  • gnufuu@lemmy.ca ⁨2⁩ ⁨hours⁩ ago

    Yeah, better avoid those types

    source
  • LeFrog@discuss.tchncs.de ⁨5⁩ ⁨hours⁩ ago

    ELI5?

    source
    • Badabinski@kbin.earth ⁨5⁩ ⁨hours⁩ ago

      In programming languages, data comes in different forms. If you want to get a yes/no answer to something, there's a way to represent that: a true/false boolean. If you want to get a street address, that's a string, because it's just a big ol blob of undifferentiated text to the computer.

      The joke is about how you ask someone a yes or no question, but they respond with something which is not either of those options.

      source
  • Kenny2999@lemmy.world ⁨3⁩ ⁨hours⁩ ago

    Unless the question is “did you buy any clothes, dear?”

    source
  • forkDestroyer@infosec.pub ⁨7⁩ ⁨hours⁩ ago

    True it is! Mwahahahahaahah!

    source
    • Drekaridill@lemmy.wtf ⁨2⁩ ⁨hours⁩ ago

      “false”

      source
  • Badabinski@kbin.earth ⁨7⁩ ⁨hours⁩ ago

    A string with length > 0 is truthy*, so we're good!

    *in python

    source
    • ReluctantMuskrat@lemmy.world ⁨5⁩ ⁨hours⁩ ago

      False is true!

      source