5 ms·
I thought everyone used i and j? No seriously, my first language was VB 6 (or 5?), so I'm not remotely old-school.
by elsurudo 12y ago
I thought everyone used i and j? No seriously, my first language was VB 6 (or 5?), so I'm not remotely old-school.
- hga 12y agoWell, 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.
- mardurhack 12y agoOh god, I've always thought that i stood for "index". And j...Well it is the most logical name for the next index. :D
- hga 12y agoIt might, I don't know the origin of i, j etc. in math....
- Queue52 12y agoActually 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.
- mardurhack 12y agoOh thanks for clarifying that!
- Dewie 12y agoI use i,j for 2dimensional arrays in Java. I learned programming in ... 2010.