@devilish666@lemmy.world to Programmer Humor@lemmy.ml • 8 months agoAaargh....my eyes......my eyes......lemmy.worldimagemessage-square97fedilinkarrow-up1627arrow-down112
arrow-up1615arrow-down1imageAaargh....my eyes......my eyes......lemmy.world@devilish666@lemmy.world to Programmer Humor@lemmy.ml • 8 months agomessage-square97fedilink
minus-square@RogueBanana@lemmy.ziplinkfedilinkEnglish71•8 months agoI would take this over int a; anyday
minus-square@RogueBanana@lemmy.ziplinkfedilinkEnglish27•8 months agoCmon now its illegal to use them anywhere other than iterators
minus-square@FooBarrington@lemmy.worldlinkfedilink4•8 months agoI sometimes use n as my loop variable (⌐■_■)
minus-square@SorryQuick@lemmy.calinkfedilink2•8 months agon is genrally the max though. “From i=0 to n” is used in math all the time.
minus-square@SorryQuick@lemmy.calinkfedilink1•8 months agoWhich is fine, only it might confuse whoever then has to maintain your code.
minus-square@Ironfacebuster@lemmy.worldlinkfedilink18•8 months agoint IntegerThatWillBeUsedToIterateOverAListOfItemsAndModifyThem2
I would take this over int a; anyday
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
int IntegerThatWillBeUsedToIterateOverAListOfItemsAndModifyThem2