Quilotoa@lemmy.ca to Mildly Interesting@lemmy.world · 2 months agoIn-N-Out Officially Removes Number '67' from Its Ordering System After Viral '6-7' Trendpeople.comexternal-linkmessage-square43linkfedilinkarrow-up1227arrow-down13
arrow-up1224arrow-down1external-linkIn-N-Out Officially Removes Number '67' from Its Ordering System After Viral '6-7' Trendpeople.comQuilotoa@lemmy.ca to Mildly Interesting@lemmy.world · 2 months agomessage-square43linkfedilink
minus-squareGreenCrunch@piefed.blahaj.zonelinkfedilinkEnglisharrow-up14·2 months agothe article mentions 69 being skipped as well. I assume it’s pretty simple, just check it against the list and increment until it’s valid. int getNextOrderNumber(int currentNumber) { currentNumber++; while(isBanned(currentNumber)) { currentNumber++; } return currentNumber; } where bool isBanned(int orderNumber) simply checks the order number against the banned list and returns true if it’s not allowed.
minus-squareRentlar@lemmy.calinkfedilinkarrow-up2·2 months agoNot that it’s hard to implement, but neat that it is already being practiced in tgese systems, similar to noticing floors 4, 13 or 14 being skipped in a building.
the article mentions 69 being skipped as well. I assume it’s pretty simple, just check it against the list and increment until it’s valid.
int getNextOrderNumber(int currentNumber) { currentNumber++; while(isBanned(currentNumber)) { currentNumber++; } return currentNumber; }where
bool isBanned(int orderNumber)simply checks the order number against the banned list and returns true if it’s not allowed.Not that it’s hard to implement, but neat that it is already being practiced in tgese systems, similar to noticing floors 4, 13 or 14 being skipped in a building.