9
6
u/R3D3-1 Jan 12 '25
Logically, the "foreach" and "if else if else" pictures are the same.
I like the try-catch though.
8
3
2
u/IAMPowaaaaa Jan 12 '25
thats more like tail recursion and folding
1
u/scoby_cat Jan 12 '25
I had the same thought with the recursion.
Can you elaborate with folding ?
2
u/IAMPowaaaaa Jan 13 '25
i was referring to this https://en.m.wikipedia.org/wiki/Fold_(higher-order_function)
1
1
1
1
1
1
0
85
87
u/thebatmanandrobin Jan 12 '25
NGL, the "while (true)" one reminds me of a subordinate I once had while in the military:
her: "So where do the bits go when I unplug the cable?"
me: "Umm .... what????"
her: "You know, you plug the cable in, it passes the bits between computers, then you unplug it .. where do those bits go??? .. Are the trapped in the cable??"
me: "I ... uh .... wait ........ what?!??"
her: "Yeah, so couldn't I just steal this data if I just unplugged it while it was transferring, then take the cable and plug it in to another computer. I mean .. I wouldn't do that because of our clearances, but man, there's got to be some way to protect against that. Right Sergeant?"
... she was dead serious :| .......