DEV Community


Discussion on: Stop Using "data" as a Variable Name

dons20 profile image
Keno Clayton

Good article 👍🏾 I prefer using i for any sort of single dimensional loop, but for multi-dimensional loops, it is important to know exactly which index you're referring to. e.g.

for ( rows = 0; ... )
  for ( columns = 0 ... )
Enter fullscreen mode Exit fullscreen mode
dcwither profile image
Devin Witherspoon Author

Yup, to each their own 👍 I tried to acknowledge that particular point as contentious. Just too much dogma around it. The important part is that the project is consistent and it's actually something that the team applies consistently.