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
-
C0D4669025y🤔I'm starting to think everyone is trying to rickroll @C0D4
https://devrant.com/rants/2162709/... -
Art3mis4975yI can see a lazy dev that needed more than one var for nested loops and just took the next few letters of the alphabet xD That's what I would do too tbh :')
-
Quirinus7525yIt's probably from math, where i j k are used as indexes or unit vectors for different directions.
-
It's inherited from Fortran. See comments here: https://devrant.com/rants/2122686/...
-
Quirinus7525y@gronostaj aaaaand if you read the rant you posted, fortran got it from math, like I said.
-
@Quirinus It says so, but I'm not 100% sure about that. I think I read somewhere that Fortran had 4 "implicit" variables for each basic data type. ABCD for first one, EFGH for second and then IJKL were natural candidates for integers. But maybe it's just my memory making things up and I'm too lazy to search.
Related Rants
Could it be, that we use i for incremental loops because it's an abbreviation for iterator (or increment)? 🤔 Why haven't I though of this sooner?!
rant
iterator
increment
for
i
iterators
dumb