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