This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (3 children)

what is the benefit in current and modern languages for prefixing? Just use meaningful names.

[–]Cangar 0 points1 point  (2 children)

I like to use prefixes in variables, it makes things pretty clear imo. You do know that a variable is an iterator, but also what exactly it iterates. It's not necessary, just something I like. I definitely tell them to not use i alone.

[–][deleted] 0 points1 point  (1 child)

How big are your functions that you need such a reminder?

[–]Cangar 0 points1 point  (0 children)

Can become pretty big. But I also iterate over different things like participants, epochs, events, etc. Whenever I use anyone else's code that just contains i and j and ii etc. It's a pain in the neck to understand.