Re:One guy's experience with programming
by spacecowboy_lon on Thursday November 27, 2014 @04:14AM
(#8666530)
lol you can tell who the old school Fortan programers are a sthey will use i and j
[ Parent
| on HN ]
Re:One guy's experience with programming
by elsurudo on Thursday November 27, 2014 @04:16AM
(#8666532)
I thought everyone used i and j? No seriously, my first language was VB 6 (or 5?), so I'm not remotely old-school.
Well, if you go far enough in math, you'll learn the i, j, etc. convention, which is where FORmulaTRANslation got it (unless otherwise declared, variable names starting with i through n are integer).
And you might learn it indirectly from all the people and code that follow this convention. In my case, it was FORTRAN first, albeit perhaps in the same academic year 1977-8 where I was introduced to i, j, etc. in Algebra II.
Re:One guy's experience with programming
by mardurhack on Thursday November 27, 2014 @01:43PM
(#8668410)
Oh god, I've always thought that i stood for "index". And j...Well it is the most logical name for the next index. :D
Re:One guy's experience with programming
by Queue52 on Thursday November 27, 2014 @11:54PM
(#8669720)
Actually it stands for "iterator" and j and k are alphabetically next so your assumption there is spot on. I worked at a company that had coding standards that were put in place by a group of people who said "you can't use 1 letter abbreviations as they don't make any sense" to which I replied with "unless your using an iterator in a loop". Exception found.
Re:One guy's experience with programming
by mardurhack on Sunday November 30, 2014 @08:04AM
(#8676726)
Oh thanks for clarifying that!
It might, I don't know the origin of i, j etc. in math....
I use i,j for 2dimensional arrays in Java. I learned programming in ... 2010.