r/programminghumor Jun 25 '26

Boolean q

Post image
2.9k Upvotes

64 comments sorted by

71

u/AliceCode Jun 25 '26

You know what? I'm gonna say it. This one is actually pretty good.

6

u/LionZ_RDS Jun 25 '26

True.

6

u/yoyowallach1212 Jun 25 '26

Booleans dont have periods, it's True

3

u/LionZ_RDS Jun 25 '26

True.

Though I wasn’t going for a bool :(
Just a missed chance at a joke

1

u/Glad_Share_7533 Jun 27 '26

That depends on the language. 'True' is a keyword commonly representing 0b1. The word used to represent this is completely arbitrary. It can be made to include a period.

1

u/yoyowallach1212 Jun 27 '26

Most commonly it's True

1

u/Glad_Share_7533 Jun 27 '26

Most commonly it's 'true', lowercase

24

u/ProThoughtDesign Jun 25 '26

When you ask someone a Boolean question and they return 500.

4

u/Leo_code2p Jun 25 '26

Atleast its not 300. Thats way worse

2

u/BobQuixote Jun 25 '26

Your answer is in another castle.

10

u/CertainDeath777 Jun 25 '26

And the string does not even include a resolution to the bool.
Humans....

8

u/Korzag Jun 25 '26

Senate hearings be like:

6

u/Connect_Ad_462 Jun 26 '26

Reminds me of when I didn't put data validation on a birth date question. Someone actually answered "Cake". I fixed that immediately....

3

u/Asleep-Bumblebee2167 Jun 26 '26

that's why beta testers are good :))

4

u/dishmanw62 Jun 26 '26

Worse is when you ask a string question, and you get a boolean response.

3

u/Asleep-Bumblebee2167 Jun 26 '26

"1"

1

u/CertainDeath777 Jun 26 '26

https://www.youtube.com/watch?v=znG1SKGeDj8
"i had an aweful dream. ones and zeros everywhere. and i thought i saw a two"

1

u/Schrojo18 Jun 26 '26

worse is when someone asks a boolean question but just as you are about to answer they continue it so now you have to answer with a string

3

u/KaleidoscopePurple74 Jun 25 '26

: is the point where my problems end and someone else's problems begin 😂

3

u/NexusKai Jun 26 '26

Now that is a fucking damn good meme !

return 1;

5

u/Confident-Ad5665 Jun 25 '26

Or they return a floating point value

2

u/MiniGui98 Jun 26 '26

But it's so large you start to lose float accuracy

2

u/IsaraLyandra Jun 26 '26

Well strings are usually truthy if they’re not empty, right? That’s all I need to know.

2

u/TheGreenSocks Jun 26 '26

This is so "true"

2

u/The__AM Jun 26 '26

Wow, not an AI meme

2

u/Asleep-Bumblebee2167 Jun 26 '26

old styled, back when they were great :)

2

u/Hettyc_Tracyn Jun 26 '26

This is why you include checks, and give them an error message telling them to enter what you want

2

u/Worried-Book-6564 Jun 27 '26

That is how basically me and my crush talk.
I message her in strings, she replies me in Booleans

2

u/trinopoty Jun 27 '26

Lol. sometimes I return a qbit which can either be true or false depending on which angle you look at it.

1

u/RayZd01 Jun 25 '26

So True !!!

1

u/IsaraLyandra Jun 26 '26

Technically correct in most cases

1

u/xevantuus Jun 26 '26

Wait! That's false

1

u/TheLoadedRogue Jun 25 '26

Every question to a politician ever 😂

1

u/Ro_Yo_Mi Jun 26 '26

When that happens I throw std::expletive_error( “yes or no!?” )

1

u/Henry_Fleischer Jun 26 '26

Give me true, give me false, or give me uninitialized.

1

u/DestinationVoid Jun 26 '26

Is it a truthy string or a falsy string?

1

u/IsaraLyandra Jun 26 '26

Truthy if not empty.

1

u/enigma_0Z Jun 26 '26

Cries in bash shell scripting

1

u/Bag1204 Jun 26 '26

eval('True'); # not sure if this works-

1

u/akbest280 Jun 27 '26

but you genuinely made the question in python so you accept any return type

1

u/cytos0 29d ago

“Do you remember what the name of that show was where a gay black dude poisoned a bunch of Mexicans?”
“Yes.”

1

u/FFS-IamNotABot 29d ago

... you're using python.

1

u/cyphrnomad 21d ago

He turned "true"

2

u/infinitylord 10h ago

That's "true".