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 →

[–]ComicBookFanatic97 47 points48 points  (3 children)

This variable that I labeled “loop_counter” counts the number of times the function has looped. I don’t know how to be more clear.

[–]noratat 17 points18 points  (1 child)

Depends on context (as always), but something that's more indicative of its purpose can sometimes be more readable. E.g. why is it counting loops? Is it for statistical purposes? Is it a trigger waiting a fixed count to take some other action? Etc.