potoo22@programming.dev to Programmer Humor@programming.dev · 8 hours ago(How to trigger programmers (and make them irrationally angry)message-squaremessage-square32fedilinkarrow-up173arrow-down17file-text
arrow-up166arrow-down1message-square(How to trigger programmers (and make them irrationally angry)potoo22@programming.dev to Programmer Humor@programming.dev · 8 hours agomessage-square32fedilinkfile-text
Probably not a good title to seek upvotes. If it does get upvotes, more programmers get share in your pain 😅
minus-squareTroylinkfedilinkarrow-up12·4 hours agoInsist they index from 1. Like God and Fortran intended it. ;)
minus-squaredeadbeef79000@lemmy.nzlinkfedilinkarrow-up2·1 hour agoFuck C and it’s lazy shit pointer arithmetic array indexing shortcut. I.e. you just add the index × size(t) to the array pointer. Bounds checking? We’ve heard of it.
minus-squaredeadbeef79000@lemmy.nzlinkfedilinkarrow-up3·40 minutes agoLike riding a motorcycle in a tee shirt and shorts.
Insist they index from 1. Like God and Fortran intended it. ;)
Fuck C and it’s lazy shit pointer arithmetic array indexing shortcut. I.e. you just add the index × size(t) to the array pointer.
Bounds checking? We’ve heard of it.
It’s fast though.
Like riding a motorcycle in a tee shirt and shorts.
And Lua!
And Julia!