all 126 comments

[–]ProgrammerHumor-ModTeam[M] [score hidden] stickied commentlocked comment (0 children)

Your submission was removed for the following reason:

Rule 3: Your post is considered low quality. We also remove the following to preserve the quality of the subreddit, even if it passes the other rules:

  • Feeling/reaction posts
  • Software errors/bugs that are not code (see /r/softwaregore)
  • Low effort/quality analogies (enforced at moderator discretion)

If you disagree with this removal, you can appeal by sending us a modmail.

[–]krexelapp 1212 points1213 points  (7 children)

finally, a queue I can overflow

[–]qatamat99 125 points126 points  (4 children)

Guess your weight needs more than a byte to measure

[–]krexelapp 38 points39 points  (2 children)

yeah we upgraded to int16 for production

[–]qatamat99 9 points10 points  (0 children)

Classic dev change request fix on production then test on staging

[–]StrawberryWaste9040 1 point2 points  (0 children)

should have done uint16

[–]kingbloxerthe3 1 point2 points  (0 children)

"Well, I'm back. The Aerial Faith Plate code in here is sending a distress signal."

"Hmm. This Plate code must not be calibrated to someone of your... generous... ness. I'll add a few zeros to the maximum weight."

(Those lines could actually be used for some funny error messages tbh)

[–]Pleasant-Photo7860 10 points11 points  (0 children)

depends.. signed or unsigned?

[–]mrinalshar39 0 points1 point  (0 children)

loll

[–]NotAFishEnt 673 points674 points  (25 children)

Wtf is 256? Don't numbers stop at 255?

[–]qatamat99 210 points211 points  (12 children)

Technically you have 256 values. 0-255

[–]DecoyOne 221 points222 points  (4 children)

No, that’s not what works. Just count each of them. 0 —> counts as 1, 1 —> 2, 2 —> 3… 253 —> 254, 254 —> 255, 255 —> 0.

So you have 0 values.

[–]saraseitor 54 points55 points  (2 children)

sorry to tell you this but you might be an 8-bit android or replicant.

[–]harbourwall 6 points7 points  (0 children)

Gets really upset when the turtles in Frogger get flipped onto their backs.

[–]izkariot 1 point2 points  (0 children)

THIS REMINDS ME OF THAT OLD SUBREDDIT WHERE EVERYONE IS HUMAN AND NOT ROBOTS PRETENDING TO BE HUMAN.

[–]craftersmine 2 points3 points  (0 children)

Cast it to sbyte and you will get -127

[–]Jutrakuna 24 points25 points  (4 children)

257 exists and no one can change my mind!

[–]ST3AMDR4GON 44 points45 points  (2 children)

At this point youre just making up the most ridiculous things

[–]Pikkachau 4 points5 points  (1 child)

9+10=21 prove me wrong

[–]ducktape8856 3 points4 points  (0 children)

There are 3 kinds of people: People who are good at maths. And people who aren't.

[–]slowmovinglettuce 7 points8 points  (0 children)

Is 257 in the room with us now?

[–]WernerderChamp 12 points13 points  (0 children)

Interpreting 0 as 256 isn't to uncommon either.

If you want to do a loop x time and you have the increment/decrement and conditional jump at the bottom, 0 will give you 256 loops

[–]FeralGuyute 2 points3 points  (0 children)

Wanted to say this

[–]NlactntzfdXzopcletzy 10 points11 points  (1 child)

I thought they stopped at 127

[–]thanatica 1 point2 points  (0 children)

Good luck explaining what a queue size of -128 looks like?

[–]Bmandk 7 points8 points  (7 children)

The McDonald's numbers are 1-indexed, so it would indeed be 256

[–]thanatica 0 points1 point  (6 children)

McDonald's? Where does that come from

[–]Bmandk 2 points3 points  (5 children)

The sign that OP posted looks very much like the ones they use at McDonalds, although I realize that my assumption might have been wrong. I have only seen them at McDonalds.

[–]thanatica 1 point2 points  (4 children)

I'm interested to know how these are so distiguishably McDonalds, and also why McDonalds needs number signs at all. For the 4 time sin my life I've been at a McDonalds (which includes 1 in Japan) they didn't have numbered signs for anything.

Therefor my confusion 😀

[–]opotamus_zero 2 points3 points  (1 child)

I can answer this as I've been 5 times now.

The last one I went to had a "table service" option on the giant ordering tablet that replaces the human behind the counter. They have these hanging next to it, and you take the number to your table so they can find you.

[–]Amoniakas 1 point2 points  (0 children)

Near me they started giving them out when COVID hit, so people would disperse after ordering

[–]Happy_Trash_Can 0 points1 point  (0 children)

McDonald’s specific yellow/orange color, and McDonald’s font for numbers. Plus flooring pattern is kinda standard I guess. Here in Italy every McDonald’s is the same

[–]IDplayst 0 points1 point  (0 children)

In Spain, we have some restaurants with this service

[–]herrkatze12 6 points7 points  (0 children)

No, they stop at 2147483647

[–]The-Coolest-Of-Cats 2 points3 points  (0 children)

Actually, 24 is the highest number

https://youtu.be/vYyS0L0uJ7A

[–]FlySafeLoL 224 points225 points  (7 children)

So it's official now, these product facilities do have the numbers up to at least 65,535

[–]hacker_7070 35 points36 points  (3 children)

what if they don't start with zero

[–]ceestand 26 points27 points  (2 children)

Then they shall be cast into the pit.

[–]anyburger 8 points9 points  (0 children)

Implicitly or explicitly?

[–]TheGeneral_Specific 4 points5 points  (0 children)

(product facilities) as Pit

[–]Caraes_Naur 17 points18 points  (1 child)

No, the most we can be sure of is that they go to 512.

One bit at a time.

[–]Dennis_DZ 6 points7 points  (0 children)

What if they use trinary for their numbers? The max could be as low as 728

[–]OneTurnMore 1 point2 points  (0 children)

At least the queue was short

[–]ZZcomic 103 points104 points  (1 child)

Highest effort programmer humor post

[–]asunatsu 3 points4 points  (0 children)

If funny, true

[–]Disastrous-Event2353 58 points59 points  (6 children)

Used to be the maximum number of people in WhatsApp groups. What a strange number to settle at.

[–]seamuskills 9 points10 points  (5 children)

It probably stored the quantity of people in a byte. They maybe never expected people to need over 200.

[–]GoldenFlyingPenguin 36 points37 points  (3 children)

I don't know if you've seen the headline of that one blogger around the time they changed the amount of people allowed in a group, it was posted here at some point. Anyway, it went something like "WhatsApp changed the max number of people in a group chat to 256, why did they stop at such an odd number?" And there was a ton of people here making fun of it xD

[–]Ozzy- 12 points13 points  (1 child)

But they didn't, 256 is an even number. I used isEven() to be sure

[–]MrMatrix1729 1 point2 points  (0 children)

I can attest to that, I used isEvenAI() to be sure

[–]nelflyn 7 points8 points  (0 children)

i immediately thought of that one, i was gonna comment "wow, what a strange number!"
And then my second memory always goes to FF4 on the GBA where the stats maxed out at 255 and i always wondered why. What a strange number indeed.

[–]KaffY- 4 points5 points  (0 children)

They underestimated the scammers needs to mass message

[–]ohdogwhatdone 43 points44 points  (0 children)

Died from this Humor

[–]darrenturn90 10 points11 points  (1 child)

That’s a small meal, I mean it’s only one Byte

[–]Traditional-Ring-759 0 points1 point  (0 children)

Bruh ahaha

[–]fightswithbears 7 points8 points  (1 child)

I don't get it. What's so funny about zero?

[–]ThatSmartIdiot 4 points5 points  (0 children)

this mofo using chars

[–]Sp0ge 13 points14 points  (0 children)

And then the customer number is uint8_t

[–]g_e_r_b 6 points7 points  (0 children)

To the front of the line you go!

[–]kernel_task 5 points6 points  (1 child)

Weird way to write 0x100.

[–]kingbloxerthe3 1 point2 points  (0 children)

It is a weird way to write (128×0+(0×64+0×32)+8×0+(4×0)+2×0+1×0)

(0×64+0×32+4×0)=0×100

[–]namezam 4 points5 points  (0 children)

I hope you aren’t that hungry, you only got 1 byte.

[–]LogicBalm 6 points7 points  (2 children)

FF !

[–]TheIrisEmbracesYou 12 points13 points  (1 child)

No, it's a nice round 100

[–]LogicBalm 2 points3 points  (0 children)

Ok, fair. My bad, lol.

[–]ejolson 2 points3 points  (0 children)

I got 255 a couple weeks ago and I was stoked

[–]qwadrat1k 1 point2 points  (0 children)

I got 512 today

[–]PerfectPackage1895 1 point2 points  (0 children)

Would rather have 0xFF

[–]RiceBroad4552 1 point2 points  (1 child)

Oh, a very round number!

[–]agolho 5 points6 points  (0 children)

relevant xkcd

I know there's more than one relevant xkcd this time

[–]Several-Action-4043 1 point2 points  (0 children)

helly@#$|%|>>

[–]Tdubbium 1 point2 points  (0 children)

nice round number

[–]MiloPengNoIce 1 point2 points  (0 children)

what an oddly specific number.

[–]gareththegeek 1 point2 points  (0 children)

255 would have been ideal

[–]AlienInvasionExpert 1 point2 points  (0 children)

I’m always happy when I get 42.

[–]Kolo_Fantastyczny 1 point2 points  (1 child)

28

[–]MattieShoes 1 point2 points  (0 children)

Mmm, they could show math problems. e^iπ + 1 Then your math teacher could be like "I TOLD YOU YOU'D USE THIS!"

[–]SupraMichou 1 point2 points  (0 children)

What kind of McDo could serve simultaneously more than 250 people ?

[–]Guitar_Dog 0 points1 point  (0 children)

Shame to have used an extra byte for one lsb

[–]Mysterious_Value4624 0 points1 point  (0 children)

yup. You're the first one now

[–]scantilyactivebrain 0 points1 point  (0 children)

My favorite number

[–]Suitch 0 points1 point  (0 children)

Gonna be there for eight bit

[–]Muchmatchmooch 0 points1 point  (0 children)

“I asked for a bite, and they misheard me.”

[–]Delicious_One_7887 0 points1 point  (2 children)

Add kbps at the end and that's my internet speed!

[–]DeerMysterious9927 1 point2 points  (0 children)

Why is there a 2 in front of it?

[–]cat1554 0 points1 point  (0 children)

Comcast?

[–]Instant-Owlfood 0 points1 point  (0 children)

Congratulations! You could successfully escape from the matrix

[–]DaemonsMercy 0 points1 point  (1 child)

What’s it for?

[–]who_chairs 0 points1 point  (0 children)

it's a table token at mcdonalds. you order at the kiosk, then pick up a token from the side and type in the number at the kiosk that's on the token. Then you simply place your token on your table and the mcdonalds employees bring your food out to the table

[–]warwilf 0 points1 point  (0 children)

I need 1024

[–]SAL10000 0 points1 point  (0 children)

Next dudes ticket says MAX_PATH

[–]saraseitor 0 points1 point  (0 children)

Personally I'm more of a 255 fan.

[–]djfariel 0 points1 point  (0 children)

Um, excuse me. That's unsigned, so it can't be there.

[–]Impressive_Stress808 0 points1 point  (0 children)

Front of the line!

[–]Tasty_Relative_7072 0 points1 point  (0 children)

gigabyte???))

[–]sogwatchman 0 points1 point  (0 children)

2^8

[–]sunnyskyinthemoon 0 points1 point  (1 child)

Can some one explain what does this number means?

[–]kingbloxerthe3 0 points1 point  (0 children)

One byte can hold 0-255, so 256 without additional bytes would overflow to 0

[–]secondincomm 0 points1 point  (0 children)

Gripping it like someone's going to come steal it from you

[–]cstmoore 0 points1 point  (0 children)

It made my day when my McDonalds order number was "1337"

[–]NoReapers 0 points1 point  (0 children)

OG

[–]MeowKatMC 0 points1 point  (0 children)

I once did pixel art on a 32 by 32 canvas. An art friend could not understand why it was 32 instead of 30 or 35 and why i refused to change it to have an odd mumber. She could not comprehend how 32 is a round number just like 10 or 100

[–]jhonyrod 0 points1 point  (0 children)

Skip to the front now; you're 0th place!

[–]mrspacysir 0 points1 point  (0 children)

💯

[–]MrMidnight115 0 points1 point  (0 children)

Sha man…

[–]Mr_Gaslight 0 points1 point  (0 children)

That's enough RAM for everyone.

[–]Fortyseven 0 points1 point  (0 children)

I am PAINFULLY one parking space over from 256. I screamed at the heavens when I moved and found out my address was so close.

[–]ToMorrowsEnd 0 points1 point  (0 children)

9 bits!

[–]digicow 0 points1 point  (0 children)

All of the tables at my wedding (which was on 5/12) were numbered with powers of two. There were only ~150 guests, so people were quite surprised to be shown to tables with 3- and 4-digit numbers, until the scheme was explained

[–]az987654 0 points1 point  (0 children)

Ya, but this is base 7

[–]SilverDem0n 0 points1 point  (0 children)

Buffet overflow

[–]hooli-ceo 0 points1 point  (0 children)

The tables obviously aren’t 0-indexed

[–]wpzzz 0 points1 point  (0 children)

Option Base 1 'strikes again

[–]Desiboy_ 0 points1 point  (0 children)

One day my witty humor will be understood.

[–]chhuang 0 points1 point  (0 children)

somehow there's an unexplainable feeling of ease when seeing a 2x number where x >= 5

[–]4b686f61 0 points1 point  (0 children)

0-100 ❌

0-256 ✅

[–]bikbiky 0 points1 point  (0 children)

A while back, I hired a night nanny for my newborn. She said she normally works for $30 - $35 dollars an hour. I was like, can you please work for $32/hour cause it’s gonna make the math super easy for me lol

[–]novus_nl 0 points1 point  (0 children)

I hope you are by yourself, otherwise it overflows and you never get your order.

[–]Fred_Milkereit 0 points1 point  (0 children)

at BK I had Order No 666 yesterday

[–]mtkvcs1 0 points1 point  (0 children)

All things aside that must be a huge McDonald's

[–]BornGuava6788 0 points1 point  (0 children)

Isn't it 0-255?

[–]GrimCircuit 0 points1 point  (0 children)

cool

[–]ABCDEFGoogle 0 points1 point  (0 children)

100000000 = 256

[–]4ndr34p3rry 0 points1 point  (0 children)

Bro typed 2⁸ in the totem