not_IO@lemmy.blahaj.zone to Microblog Memes@lemmy.worldEnglish · 3 days agooddly specificlemmy.blahaj.zoneimagemessage-square199fedilinkarrow-up11.48Karrow-down113
arrow-up11.47Karrow-down1imageoddly specificlemmy.blahaj.zonenot_IO@lemmy.blahaj.zone to Microblog Memes@lemmy.worldEnglish · 3 days agomessage-square199fedilink
minus-squareJoh4PM@lemmy.worldlinkfedilinkEnglisharrow-up3arrow-down12·3 days agoSince you start counting from zero, the byte limit should be 255 = 2^8 - 1.
minus-squareverstra@programming.devlinkfedilinkEnglisharrow-up46·edit-23 days agoThere 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·3 days agoI see what you did there.
minus-squaredohpaz42@lemmy.worldlinkfedilinkEnglisharrow-up18·3 days agoThe count is 0 through 255, which equals 256 total.
minus-squaremoriquende@lemmy.worldlinkfedilinkEnglisharrow-up5·3 days agoIf you create a table and number the first row with “0”, you’ll need 256 rows to reach row index “255”
minus-squaretgt@programming.devlinkfedilinkEnglisharrow-up3·3 days agoI guess it’s you and 255 others?
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?