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
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?).
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.
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).
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.
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