@[email protected] to Programmer [email protected] • 2 years agowhy not a,b or x,y?lemm.eeimagemessage-square87fedilinkarrow-up1653arrow-down143
arrow-up1610arrow-down1imagewhy not a,b or x,y?lemm.ee@[email protected] to Programmer [email protected] • 2 years agomessage-square87fedilink
minus-square@throwsbookslink14•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@rarkgrameslink2•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 😀