r/ProgrammerHumor • • Jun 06 '20

It's the law!

Post image
38k Upvotes

1.1k comments sorted by

View all comments

1

u/TheMogician Jun 06 '20

It's funny because I always used m and n.

1

u/D3LB0Y Jun 06 '20

N and X seems to piss people off.

It’s exactly like in maths? Wtfs the point being different

1

u/TheMogician Jun 06 '20

I don't think it matters, the only point is doing whatever you want. I usually give my variables long names that are extremely descriptive but most of my friends never do that.

1

u/futlapperl Jun 06 '20

If we're talking about sums (which are loops, sort of) then I think i is more common with n being the upper bound.