r/facepalm • • Mar 23 '24

🇲​🇮​🇸​🇨​ 🤦

Post image
60.7k Upvotes

1.8k comments sorted by

View all comments

17

u/[deleted] Mar 23 '24

What are you people on about? 256 IS an oddly specific number. Sure, binary code this and that, but the choice to limit the amount of people in a chatgroup to 256 can't be explained like that. You could find a justification for any number, because many numbers have some cultural or scientific relevance.

Limiting the size to 12 for instance could be excused with "oh like the 12 apostles", but it'd still be arbitrary and oddly specific

4

u/GenuinelyBeingNice Mar 23 '24

I'd limit it to 259.

Just to keep people very confused.

3

u/mikaeelmo Mar 23 '24

It would invite me to think that they are storing the number of people in a group, in a database, as a "tinyint unsigned" data type. However, most likely they don't need to store that number, and belonging or not to a group is a result of associating people to a group using some sort of join table (if they work with relational databases), and then just counting them when checking for group size, in which case it makes no real difference if there are 256, 12, or 1 million. But who knows... maybe they use some sort of non-relational db in which adding too many people and counting them could introduce performance issues or substantially increase db size (considering it has millions of users), in which case it could make sense to keep the number quite low (256 instead of 1000), since it's just cheaper (but why... are they broke?).

1

u/xreufx Mar 23 '24

Scrolling through comments, thinking the same exact thing. Whatever is the logic behind 256 its important to know that there is one behind every number, and that itself does not make explain the logic of limiting the number of people in a chat group. There is a step missing inbetween.

  • Step 1 - collect underware;

  • Step 2 - ???;

  • Step 3 - profit!

1

u/qrrbrbirlbel Mar 23 '24

Yeah, at a high level 256 isn't much nicer than 250, or even 1337. People aren't computers.

1

u/drac0nicfr Mar 23 '24

not really, to a computer 256 is a round number

-5

u/denny31415926 Mar 23 '24

Maybe it'll make more sense if you write 256 in binary, which is 100000000. Doesn't look so arbitrary anymore, huh

0

u/[deleted] Mar 23 '24 edited Mar 25 '24

Well it does. If the goal was to limit the amount of memory to store the number of participants, then 255 would be more logical, as that's 1111 1111. So 8 bits, instead of the 9 that are needed to store 256. If you're gonna use 9 bits anyways, then why not allow the maximum to be 1 1111 1111 (511).

Edit: I stand corrected.

2

u/WhatRaSudip Mar 23 '24

Let say you store people in a group chat in a table. You can index that table using one byte integer. First person is 0 and last one is 255. If you allow even one more person in the group you will need 2 byte index.

1

u/[deleted] Mar 25 '24

That makes sense. I stand corrected.

2

u/denny31415926 Mar 23 '24

Don't forget you can store one of the participants with an ID of 0. 8 bits stores 256 possibilities

2

u/[deleted] Mar 25 '24

That makes sense. I stand corrected.

0

u/wakemeupoh Mar 23 '24

Bro what are you on about 😂

1

u/denny31415926 Mar 24 '24

Well, what are you on about? Nothing I've said is false. It's basic computer science that you can easily verify with a quick google search