not_IO@lemmy.blahaj.zone to Microblog Memes@lemmy.worldEnglish · 24 天前oddly specificlemmy.blahaj.zoneexternal-linkmessage-square199fedilinkarrow-up11.5Karrow-down113
arrow-up11.49Karrow-down1external-linkoddly specificlemmy.blahaj.zonenot_IO@lemmy.blahaj.zone to Microblog Memes@lemmy.worldEnglish · 24 天前message-square199fedilink
minus-squareJoh4PM@lemmy.worldlinkfedilinkEnglisharrow-up3arrow-down12·24 天前Since you start counting from zero, the byte limit should be 255 = 2^8 - 1.
minus-squareverstra@programming.devlinkfedilinkEnglisharrow-up46·edit-224 天前There are only two hard problems in computer science: naming things, cache invalidation, off-by-one errors. I’m afraid you’ve fell victim to the problem 2.
minus-squareAbsolutelyNotAVelociraptor@sh.itjust.workslinkfedilinkEnglisharrow-up6·24 天前I see what you did there.
minus-squaredohpaz42@lemmy.worldlinkfedilinkEnglisharrow-up18·24 天前The count is 0 through 255, which equals 256 total.
minus-squaremoriquende@lemmy.worldlinkfedilinkEnglisharrow-up5·24 天前If you create a table and number the first row with “0”, you’ll need 256 rows to reach row index “255”
Since you start counting from zero, the byte limit should be 255 = 2^8 - 1.
There are only two hard problems in computer science:
I’m afraid you’ve fell victim to the problem 2.
I see what you did there.
The count is 0 through 255, which equals 256 total.
If you create a table and number the first row with “0”, you’ll need 256 rows to reach row index “255”
I guess it’s you and 255 others?