3 ms·
by constraining response length To be fair to Twitter that wasn't a philosophical decision - 140 chars was what fit into the 160-char SMS protocol limit, with
by gaius 9y ago
by constraining response length
To be fair to Twitter that wasn't a philosophical decision - 140 chars was what fit into the 160-char SMS protocol limit, with the remainder given over to their own layer.
- mort96 9y agoIt wasn't originally, but twitter over SMS hasn't been relevant for a long time now. They definitely would have gone away from the 140 char restriction if they thought it would have made their service better.
- gaius 9y agoIt wouldn't surprise me in the slightest if they had char* msg = malloc(141); spread throughout their code still... Maybe they can't change it.
- Tuna-Fish 9y agoUnless that's a 32-bit char, that won't work. These days twitter allows 140 unicode codepoints, not 140 bytes. At it's worst, that's 560 bytes.
- brainfire 9y agoThere are exceptions now to the length rule - URLs don't count, @names don't count. I would guess that means they've ripped that code all out.