@[email protected] to Programmer [email protected] • 6 months agoAaargh....my eyes......my eyes......lemmy.worldimagemessage-square99fedilinkarrow-up1624arrow-down112
arrow-up1612arrow-down1imageAaargh....my eyes......my eyes......lemmy.world@[email protected] to Programmer [email protected] • 6 months agomessage-square99fedilink
minus-square@[email protected]cakelinkfedilink31•6 months agoAmateur! Ints should be called i, j or k.
minus-square@[email protected]linkfedilinkEnglish27•6 months agoCmon now its illegal to use them anywhere other than iterators
minus-square@[email protected]linkfedilink1•6 months agon is genrally the max though. “From i=0 to n” is used in math all the time.
minus-square@[email protected]linkfedilink1•6 months agoWhich is fine, only it might confuse whoever then has to maintain your code.
minus-square@[email protected]linkfedilink18•6 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