mastermind@lemm.ee to Programmer Humor@lemmy.ml · 1 year agowhy not a,b or x,y?lemm.eeimagemessage-square99fedilinkarrow-up1671arrow-down144
arrow-up1627arrow-down1imagewhy not a,b or x,y?lemm.eemastermind@lemm.ee to Programmer Humor@lemmy.ml · 1 year agomessage-square99fedilink
minus-squareTheWoozy@lemmy.worldlinkfedilinkarrow-up14·1 year agoIn old FORTAN variable starting with I…N are integers. This is how the practice began.
minus-squarepazukaza@lemmy.mllinkfedilinkarrow-up1·1 year agoOh wow, I thought it was because “i” was a short way of writing “index”. Then “j” was just logical after that.
minus-squareTheWoozy@lemmy.worldlinkfedilinkarrow-up1·1 year agoYou are still correct! The letters I & n are the first letters on Index.
minus-squareemptyother@lemmy.worldlinkfedilinkarrow-up1·1 year agoLearned 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).
In old FORTAN variable starting with I…N are integers. This is how the practice began.
Oh wow, I thought it was because “i” was a short way of writing “index”. Then “j” was just logical after that.
You are still correct! The letters I & n are the first letters on Index.
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).