Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
IIRC first versions of COBOL (or some other prehistoric language) had fixed, pre-defined variables of different types, "i" was the first integer.
-
TobiSGD2815yIn Mathematics the variables i,j,k,l where usually used to describe integers. Fortran took this convention and ran with it, in Fortran variables beginning with the letters I-N where of type Integer by default, which of course means that single letter I is the first "default" integer variable.
-
Root826025yI learned assembly first, and then picked up C, which gave me a few strange habits and patterns. For example, I often used `a` or `c` as the for loop variable because it's called the accumulator, and in assembly it's common practice to use the cx register for looping.
-
kamen69965y@k0pernikus Yeah, but I think it makes more sense to give it a meaningful name; after all, you're not typing it two times like just the declaration row of a standard for loop, so IMO it doesn't hurt for it to be longer... unless you're doing something on a single row, when just one character can be okay.
-
Parzi88335yin TI-BASIC i use S for loops (then T,U,V if something's nested.) No clue WHY, but I do. They're not even easiest to get to, they're just what I use...
-
In our physics class when working with dimensions we used i, j, and k as for x , y, and z. Don't know if it's a physics thing or that our lecturer preferred to do it that way.
So it might be in order to denote dimensions. -
No one will ever know.
Unless it just simply means “iterate” or “iteration” which actually makes the most sense tbh.
Related Rants
Why😂😂😂😂
joke/meme
for loop