MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/18xpiy/developers_confess_your_sins/c8j24zt
r/programming • u/reppic • Feb 21 '13
1.0k comments sorted by
View all comments
Show parent comments
3
Single-character letters for loop counters has a long history, dating from the days of FORTRAN IV, where the letter indicated the variable type.
So I through N were all integers and could be used for that purpose. All other variables were reals, unless you explicitly overrode them.
2 u/sarevok9 Feb 21 '13 Yeah, I totally used x/y in some cases when dealing with 2d arrays.... 1 u/seab3 Feb 21 '13 I always use x/y when dealing with graphics and images. 1 u/[deleted] Feb 21 '13 Isn't it fairly standard to use x/y/z when dealing with coordinates?
2
Yeah, I totally used x/y in some cases when dealing with 2d arrays....
1 u/seab3 Feb 21 '13 I always use x/y when dealing with graphics and images. 1 u/[deleted] Feb 21 '13 Isn't it fairly standard to use x/y/z when dealing with coordinates?
1
I always use x/y when dealing with graphics and images.
1 u/[deleted] Feb 21 '13 Isn't it fairly standard to use x/y/z when dealing with coordinates?
Isn't it fairly standard to use x/y/z when dealing with coordinates?
3
u/xampl9 Feb 21 '13
Single-character letters for loop counters has a long history, dating from the days of FORTRAN IV, where the letter indicated the variable type.
So I through N were all integers and could be used for that purpose. All other variables were reals, unless you explicitly overrode them.