Hi so as I mentioned in the title I have a bunch of loops within loops in my code and most of them use a variable to loop through stuff. I call my variables ia, then ib then ic and so on. What is good form for the naming of these variables?
Here is some code that might help make sense of what I am saying
for (var ic = 0; ic <= currState.length; ic++) { //loop the columns and check if there is a
if (currState[ic] == 0) {
for (var id = 1; id <= currState.length; id++) { //loop the rows of a column
tryPos = [id, ic + 1]; //id -> row | ic -> column
if (checkClash(currState, tryPos) == false) {
currState[ic] = id
break;
}
}
}
}