devilish666@lemmy.world to Programmer Humor@lemmy.ml · 7 months agoAaargh....my eyes......my eyes......lemmy.worldimagemessage-square98fedilinkarrow-up1627arrow-down112
arrow-up1615arrow-down1imageAaargh....my eyes......my eyes......lemmy.worlddevilish666@lemmy.world to Programmer Humor@lemmy.ml · 7 months agomessage-square98fedilink
minus-squareintelisense@lemm.eelinkfedilinkarrow-up31·7 months agoAmateur! Ints should be called i, j or k.
minus-squareRogueBanana@lemmy.ziplinkfedilinkEnglisharrow-up27·7 months agoCmon now its illegal to use them anywhere other than iterators
minus-squareFooBarrington@lemmy.worldlinkfedilinkarrow-up4·7 months agoI sometimes use n as my loop variable (⌐■_■)
minus-squareSorryQuick@lemmy.calinkfedilinkarrow-up2·7 months agon is genrally the max though. “From i=0 to n” is used in math all the time.
minus-squareSorryQuick@lemmy.calinkfedilinkarrow-up1·7 months agoWhich is fine, only it might confuse whoever then has to maintain your code.
Amateur! Ints should be called i, j or k.
Cmon now its illegal to use them anywhere other than iterators
I sometimes use
n
as my loop variable (⌐■_■)n is genrally the max though. “From i=0 to n” is used in math all the time.
Not in my code
Which is fine, only it might confuse whoever then has to maintain your code.
This is the way