Avoid Overly Short Abbreviated Loop Index Names [VD1]

Avoid Overly Short Abbreviated Loop Index Names [VD1]

Tip VD1

Loop indices have often been given short names like i, j, and k. Short loop index names like these may seem like quick time savers when initially writing code. But they can be fraught with problems, so when considering the long-term maintainability of code, use more descriptive names.

See the following examples:

Code More Meet Less Ad.png