not_IO@lemmy.blahaj.zone to Microblog Memes@lemmy.worldEnglish · 24 days agooddly specificlemmy.blahaj.zoneimagemessage-square180linkfedilinkarrow-up11arrow-down10
arrow-up11arrow-down1imageoddly specificlemmy.blahaj.zonenot_IO@lemmy.blahaj.zone to Microblog Memes@lemmy.worldEnglish · 24 days agomessage-square180linkfedilink
minus-squareJoh4PM@lemmy.worldlinkfedilinkEnglisharrow-up0·24 days agoSince you start counting from zero, the byte limit should be 255 = 2^8 - 1.
minus-squaredohpaz42@lemmy.worldlinkfedilinkEnglisharrow-up0·24 days agoThe count is 0 through 255, which equals 256 total.
minus-squareverstra@programming.devlinkfedilinkEnglisharrow-up0·edit-224 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-up0·24 days agoI see what you did there.
minus-squaretgt@programming.devlinkfedilinkEnglisharrow-up0·24 days agoI guess it’s you and 255 others?
minus-squaremoriquende@lemmy.worldlinkfedilinkEnglisharrow-up0·23 days agoIf 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.
The count is 0 through 255, which equals 256 total.
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.
I guess it’s you and 255 others?
If you create a table and number the first row with “0”, you’ll need 256 rows to reach row index “255”