Thread 40386849 - /lgbt/ [Archived: 304 hours ago]

Anonymous
7/14/2025, 10:11:26 PM No.40386849
1752314720971097
1752314720971097
md5: 3521f3d7ed80af53b90dc56eba91d220🔍
i don't trust switches
Replies: >>40386862 >>40386874 >>40389127
CES !YJcFgIOyXg
7/14/2025, 10:12:43 PM No.40386862
>>40386849 (OP)
Must be 120 IQ based on pic, past 140+ you start to realize how arbitrary it all is for real.
Anonymous
7/14/2025, 10:14:32 PM No.40386874
1752511883291454
1752511883291454
md5: e86f9c75e99bc5e95fd0b6ff95c9513e🔍
>>40386849 (OP)
you could've fooled me, Jason
Replies: >>40386880 >>40386894 >>40386998 >>40387884 >>40389036
Anonymous
7/14/2025, 10:15:34 PM No.40386880
360_F_17491432_jRAF6seJaYTOIO1KN82B21mWPJJST8E2
360_F_17491432_jRAF6seJaYTOIO1KN82B21mWPJJST8E2
md5: a9931125803df8c3565f982dc9eec6a5🔍
>>40386874
Is that a switch that does nothing?
Replies: >>40387860
Anonymous
7/14/2025, 10:17:12 PM No.40386894
>>40386874
what the fuck? don't tell me he wrote this.
Replies: >>40387860
Anonymous
7/14/2025, 10:26:59 PM No.40386998
>>40386874
I wish I had the background that would allow me to point and laugh at this like everyone else. Can someone summarize what this is trying(failing?) to do, and why it's stupid? I feel left out
Replies: >>40387798 >>40387860
Anonymous
7/14/2025, 11:55:06 PM No.40387798
>>40386998
it's a redundant (vestigial?) check for something it never tests, like it's saying
>okay look at this number, now ignore that and do something unrelated to it
Anonymous
7/15/2025, 12:02:53 AM No.40387860
>>40386880
>>40386894
sadly, yes
>>40386998
a switch statement tells the program what to do depending on the value of a specific variable. so imagine your mom gave you treats based on how many answers you got right on the math test, if you got all 4 correct you get an ice cream sundae, if you got 3 correct you get a cupcake, for 2 you get a lollipop but if you got 1 or 0 answers right you get gruel. assuming a lot of logic and data validation already took place you could write out that process with something like this

switch(number_of_correct_answers) {
case 4:
treat = ice cream sundae;
break;
case 3:
treat = cupcake;
break;
case 2:
treat = lollipop;
break;
default:
treat = gruel;
break;
}

the default label denotes instructions that will take place if the value in the switch() doesn't meet any of the given cases. so if you got 0 or 1 answers correct you don't need to make cases for that you can just put it under default. (yes you'll still get gruel for -248 correct answers but i'm trying to simplify this as much as i can and i already mentioned pre-existing data validation). you can infer that making a switch statement with only a default block and nothing else does nothing because what you're asking the computer to do is "hey so if the thing in the switch() doesn't meet any of the listed cases, do this." and then you don't list any cases, meaning the default block will always trigger no matter what. that's exactly what pirate software did here.
Replies: >>40387964 >>40388840
Anonymous
7/15/2025, 12:05:53 AM No.40387884
1739558193964482
1739558193964482
md5: 5ddeebc627fcc8ee994f45f9dd148dd9🔍
>>40386874
bruh...
Anonymous
7/15/2025, 12:14:46 AM No.40387964
>>40387860
>food analogy
Anonymous
7/15/2025, 1:33:52 AM No.40388840
>>40387860
I deserve gruel for my social credit score
Anonymous
7/15/2025, 1:39:54 AM No.40388916
How do I know if I'm a switch? I feel like I don't quite fit in anywhere, I don't know if I'm even queer but I think I would date a tranny.
Anonymous
7/15/2025, 1:40:32 AM No.40388919
kek you shouldn't
Anonymous
7/15/2025, 1:48:53 AM No.40389036
>>40386874
whose code is this?
Anonymous
7/15/2025, 1:57:21 AM No.40389127
>>40386849 (OP)
switches are usually just bottoms that are such doormats that they let other bottoms pressure them into topping
Replies: >>40389167
Anonymous
7/15/2025, 2:02:04 AM No.40389167
>>40389127
me