mastermind@lemm.ee to Programmer Humor@lemmy.ml · 1 year agowhy not a,b or x,y?lemm.eeimagemessage-square97fedilinkarrow-up1648arrow-down141
arrow-up1607arrow-down1imagewhy not a,b or x,y?lemm.eemastermind@lemm.ee to Programmer Humor@lemmy.ml · 1 year agomessage-square97fedilink
minus-squarethrowsbooks@lemmy.worldlinkfedilinkarrow-up14·1 year agoI always thought i for index when iterating through an array. Then you can’t use i again in a nested loop so j follows. Tho sometimes x, y if the array represents coordinates. Only a maniac would use a, b.
minus-squarerarkgrames@lemmy.worldlinkfedilinkarrow-up2·1 year agoOne of the very first lines of code I ever wrote was: 10 FOR a = 1 TO 70 In Spectrum Basic. I do tend to use I these days, I’ve calmed down since my childhood days 😀
I always thought i for index when iterating through an array. Then you can’t use i again in a nested loop so j follows.
Tho sometimes x, y if the array represents coordinates.
Only a maniac would use a, b.
One of the very first lines of code I ever wrote was:
10 FOR a = 1 TO 70
In Spectrum Basic. I do tend to use I these days, I’ve calmed down since my childhood days 😀