614
you are viewing a single comment's thread
view the rest of the comments
[-] RogueBanana@lemmy.zip 71 points 8 months ago

I would take this over int a; anyday

[-] intelisense@lemm.ee 31 points 8 months ago

Amateur! Ints should be called i, j or k.

[-] RogueBanana@lemmy.zip 27 points 8 months ago

Cmon now its illegal to use them anywhere other than iterators

[-] FooBarrington@lemmy.world 4 points 8 months ago

I sometimes use n as my loop variable (⌐■_■)

[-] SorryQuick@lemmy.ca 2 points 8 months ago

n is genrally the max though. “From i=0 to n” is used in math all the time.

[-] FooBarrington@lemmy.world 1 points 8 months ago
[-] SorryQuick@lemmy.ca 1 points 8 months ago

Which is fine, only it might confuse whoever then has to maintain your code.

[-] perishthethought@lemm.ee 3 points 8 months ago

This is the way

[-] Ironfacebuster@lemmy.world 18 points 8 months ago

int IntegerThatWillBeUsedToIterateOverAListOfItemsAndModifyThem2

this post was submitted on 28 Mar 2024
614 points (98.1% liked)

Programmer Humor

32710 readers
409 users here now

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

Rules:

founded 5 years ago
MODERATORS