616
submitted 1 year ago by [email protected] to c/[email protected]
you are viewing a single comment's thread
view the rest of the comments
[-] [email protected] 71 points 1 year ago

I would take this over int a; anyday

[-] [email protected] 31 points 1 year ago

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

[-] [email protected] 27 points 1 year ago

Cmon now its illegal to use them anywhere other than iterators

[-] [email protected] 4 points 1 year ago

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

[-] [email protected] 2 points 1 year ago

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

[-] [email protected] 1 points 1 year ago
[-] [email protected] 1 points 1 year ago

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

[-] [email protected] 3 points 1 year ago

This is the way

[-] [email protected] 18 points 1 year ago

int IntegerThatWillBeUsedToIterateOverAListOfItemsAndModifyThem2

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

Programmer Humor

36796 readers
271 users here now

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

Rules:

founded 5 years ago
MODERATORS