this post was submitted on 09 Jul 2023
591 points (94.3% liked)

Programmer Humor

32558 readers
870 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] TheWoozy@lemmy.world 9 points 1 year ago (2 children)

In old FORTAN variable starting with I...N are integers. This is how the practice began.

[–] emptyother@lemmy.world 1 points 1 year ago

Learned that VERY recently from here, at NDC Oslo 2023, he mentioned it around 42:54. The whole talk is worth watching, its about the history of javascript all the way back to FORTRAN (the talk itself starts at 25:03).

[–] pazukaza@lemmy.ml 0 points 1 year ago (1 children)

Oh wow, I thought it was because "i" was a short way of writing "index". Then "j" was just logical after that.

[–] TheWoozy@lemmy.world 1 points 1 year ago

You are still correct! The letters I & n are the first letters on Index.