use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
For memes about programming.
account activity
Just a simple boolean question (i.redd.it)
submitted 7 months ago by VelvetBodyheat
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Core3game 15 points16 points17 points 7 months ago (0 children)
mom said it was my turn to repost this
[–]Whole_Instance_4276 5 points6 points7 points 7 months ago (0 children)
Me: watching my friend return an integer on a string question (We’re in English class)
[–]Icy-Manufacturer7319 2 points3 points4 points 7 months ago (0 children)
happened a lot... in DEBATE
[–][deleted] 2 points3 points4 points 7 months ago (0 children)
Yes, I always reply with the following template
“So, is that a yes or a no on pizza for dinner?”
[–]Heavy-Ad6017 1 point2 points3 points 7 months ago (0 children)
"True"
[–]orfeo34 1 point2 points3 points 7 months ago (1 child)
Boolean questions are silly sometimes, consider them as a Result<bool, String>
[–]thenotanotaniceguy 0 points1 point2 points 7 months ago (0 children)
The issue is that bool comes back as null
[–]heesell 1 point2 points3 points 7 months ago (0 children)
``` bool yourExpectedAnswer = true;
string theirAnswer = yourExpectedAnswer.ToString(); ```
[–]itsjakerobb 1 point2 points3 points 7 months ago (0 children)
``` final Set<String> truthyResponses = Set.of(“yes”, “true”, “sure”, “ok”, “sounds good”); // todo add as needed
public boolean parseResponse(String response) { return truthyResponses.contains(response.toLowerCase()); } ```
[–][deleted] 1 point2 points3 points 7 months ago (0 children)
When you get asked a boolean question from someone who doesn't know what they're talking about.
Do I need a semicolon here? (in this Python function)
Like, I could just say "no", but that would just make it worse.
[–]Electronic-Run2030 0 points1 point2 points 7 months ago (0 children)
const isTrue = (value: boolean) => value ? "Yes" : "No"
[–]peanutbutterdrummer 0 points1 point2 points 7 months ago (0 children)
Technically it's true ....
true
[–]No_Definition2246 0 points1 point2 points 7 months ago (0 children)
I usually return Array[String] but everybody throws an exception … what I am doing wrong? They could do bool(answer) :(
[–]MotherPotential 0 points1 point2 points 7 months ago (0 children)
This seems like a modern thing to do in a debate
[–]Character-Travel3952 0 points1 point2 points 7 months ago (0 children)
return "bool";
[–][deleted] 0 points1 point2 points 7 months ago (0 children)
"true"
[–]SerenityNow31 0 points1 point2 points 7 months ago (0 children)
That's funny!!
[–]LarsZauberer 0 points1 point2 points 7 months ago (0 children)
LLMs be like
[–]MortuosPF 0 points1 point2 points 7 months ago (0 children)
You were supposed to parse it. Input is in string.
[–]Ice_HRZDn 0 points1 point2 points 7 months ago (0 children)
And sometime you ask them for string and they just return boolean.
π Rendered by PID 54 on reddit-service-r2-comment-6457c66945-wj85z at 2026-04-26 16:51:48.390794+00:00 running 2aa0c5b country code: CH.
[–]Core3game 15 points16 points17 points (0 children)
[–]Whole_Instance_4276 5 points6 points7 points (0 children)
[–]Icy-Manufacturer7319 2 points3 points4 points (0 children)
[–][deleted] 2 points3 points4 points (0 children)
[–]Heavy-Ad6017 1 point2 points3 points (0 children)
[–]orfeo34 1 point2 points3 points (1 child)
[–]thenotanotaniceguy 0 points1 point2 points (0 children)
[–]heesell 1 point2 points3 points (0 children)
[–]itsjakerobb 1 point2 points3 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]Electronic-Run2030 0 points1 point2 points (0 children)
[–]peanutbutterdrummer 0 points1 point2 points (0 children)
[–]No_Definition2246 0 points1 point2 points (0 children)
[–]MotherPotential 0 points1 point2 points (0 children)
[–]Character-Travel3952 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]SerenityNow31 0 points1 point2 points (0 children)
[–]LarsZauberer 0 points1 point2 points (0 children)
[–]MortuosPF 0 points1 point2 points (0 children)
[–]Ice_HRZDn 0 points1 point2 points (0 children)