@kyub@discuss.tchncs.de to Programmer Humor@programming.devEnglish • edit-23 months agoThe infamous "if loop" actually existsdiscuss.tchncs.deimagemessage-square28fedilinkarrow-up11arrow-down10file-text
arrow-up11arrow-down1imageThe infamous "if loop" actually existsdiscuss.tchncs.de@kyub@discuss.tchncs.de to Programmer Humor@programming.devEnglish • edit-23 months agomessage-square28fedilinkfile-text
minus-square@Kacarott@aussie.zonelinkfedilink0•3 months agoBut what is it in reference to? What’s the “infamous if loop”?
minus-square@AliasVortex@lemmy.worldlinkfedilinkEnglish0•3 months agoInfamous because the condition is 1 (or true), the loop never actually exits because it’s always true
minus-square@aMockTie@lemmy.worldlinkfedilink0•3 months agoAh, I believe that would be from a college course.
minus-square@NigelFrobisher@aussie.zonelinkfedilink0•3 months agoIt just occurred to that in Yorkshire dialect a while loop would actually be an until loop. Directives to the rescue!
minus-square@ulterno@programming.devlinkfedilinkEnglish0•3 months agoI always wondered why I always had a hard time making developers not call “if” a “loop”. Turns out it was on their tests. Glad I didn’t read my college material, or I would have lost faith in my college professors.
minus-square@kyub@discuss.tchncs.deOPlinkfedilinkEnglish0•3 months ago“Infamous” just refers to newbies who sometimes call if statements “if loops”. I’ve heard this quite a bit.
But what is it in reference to? What’s the “infamous if loop”?
Infamous because the condition is 1 (or true), the loop never actually exits because it’s always true
Ah, I believe that would be
from a college course.
It just occurred to that in Yorkshire dialect a while loop would actually be an until loop. Directives to the rescue!
I always wondered why I always had a hard time making developers not call “if” a “loop”.
Turns out it was on their tests.
Glad I didn’t read my college material, or I would have lost faith in my college professors.
“Infamous” just refers to newbies who sometimes call if statements “if loops”. I’ve heard this quite a bit.