Name Loop Indices Based on What is Being Iterated Over [VD2]

Name Loop Indices Based on What is Being Iterated Over [VD2]

Tip VD2

When naming loop indices, clarify the kind of data that is being iterated over.

Even if you avoid overly-short single-letter loop, generic names like index can still be problematic:

 

Deep coding during work hours ad.png