this post was submitted on 09 Jul 2023
559 points (93.5% liked)

Programmer Humor

32079 readers
769 users here now

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

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] basuramannen@discuss.tchncs.de 3 points 1 year ago (1 children)

I don't like i and j since they are commonly used for imaginary numbers. I like to start on n. Probably because I do DSP.

[โ€“] tau@discuss.tchncs.de 10 points 1 year ago

But n is commonly used for a total number. Using an index i to iterate over a number n of elements just makes more sense IMO.