PotatoesFall@discuss.tchncs.de to Programmer Humor@programming.dev · 7 months agoThe easiest problemdiscuss.tchncs.deimagemessage-square93fedilinkarrow-up1621arrow-down114file-text
arrow-up1607arrow-down1imageThe easiest problemdiscuss.tchncs.dePotatoesFall@discuss.tchncs.de to Programmer Humor@programming.dev · 7 months agomessage-square93fedilinkfile-text
minus-squareowenfromcanada@lemmy.worldlinkfedilinkEnglisharrow-up69·7 months agoNah, I name all my variables after my homies. int dave = 0;
minus-squareowenfromcanada@lemmy.worldlinkfedilinkEnglisharrow-up46·7 months agoIn zero-based indexing, zero is #1.
minus-squarecodfishjoe@lemmy.worldlinkfedilinkarrow-up10·edit-27 months agoHis best friends index starts at 0
minus-squaresmeg@feddit.uklinkfedilinkEnglisharrow-up6·7 months agoAh, the XCOM approach. Now you look after those variables and get sad when you have to delete them.
Nah, I name all my variables after my homies.
int dave = 0;
does dave know he’s a zero?
In zero-based indexing, zero is #1.
Dave was number one!
His best friends index starts at 0
Ah, the XCOM approach. Now you look after those variables and get sad when you have to delete them.