When you ask someone an enum question and they return a boolean.
When you ask someone a boolean question....... and they return a string
Submitted 8 hours ago by beep@piefed.world to [deleted]
Comments
idunnololz@lemmy.world 40 minutes ago
python@lemmy.world 6 hours ago
Deep down, it’s all [Object object] anyways
gnufuu@lemmy.ca 2 hours ago
Yeah, better avoid those types
LeFrog@discuss.tchncs.de 5 hours ago
ELI5?
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.
Kenny2999@lemmy.world 3 hours ago
Unless the question is “did you buy any clothes, dear?”
forkDestroyer@infosec.pub 7 hours ago
True it is! Mwahahahahaahah!
Drekaridill@lemmy.wtf 2 hours ago
“false”
Badabinski@kbin.earth 7 hours ago
A string with length > 0 is truthy*, so we're good!
*in python
ReluctantMuskrat@lemmy.world 5 hours ago
False is true!
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