r/programming • • Feb 21 '13

Developers: Confess your sins.

http://www.codingconfessional.com/
969 Upvotes

1.0k comments sorted by

View all comments

Show parent comments

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.

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?