@mastermind@lemm.ee to Programmer Humor@lemmy.ml • 1 year agowhy not a,b or x,y?lemm.eeimagemessage-square98fedilinkarrow-up1638arrow-down140
arrow-up1598arrow-down1imagewhy not a,b or x,y?lemm.ee@mastermind@lemm.ee to Programmer Humor@lemmy.ml • 1 year agomessage-square98fedilink
minus-square@throwsbooks@lemmy.worldlinkfedilink14•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-square@rarkgrames@lemmy.worldlinkfedilink2•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 😀