Just a few random notes:
- Instead of
i
andj
the variables could be called asrowNumber
andcolumnNumber
.
Update for Thomas's comment: Reading (and understanding) code usually takes time but it's usually not because of long variable or method names. I'd not optimize for character number. There are debates about this topic on Programmer.SE this topic on Programmer.SE too. My favorite answer is nikie's one My favorite answer is nikie's one, beacuse of mentioning the short 7-slot (+-2) term memory.
-
cellGrid[j, i, 0]
0
here is a magic number. A named constant would be better.
Comments like this are unnecessary:
cell.BackColor = Color.White; // Color
It says nothing more than the code already does, it's rather noise. (Clean Code by Robert C. Martin: Chapter 4: Comments, Noise Comments)
- Shorter lines, without horizontal scrolling would be easier to read.
Just a few random notes:
- Instead of
i
andj
the variables could be called asrowNumber
andcolumnNumber
.
Update for Thomas's comment: Reading (and understanding) code usually takes time but it's usually not because of long variable or method names. I'd not optimize for character number. There are debates about this topic on Programmer.SE too. My favorite answer is nikie's one, beacuse of mentioning the short 7-slot (+-2) term memory.
-
cellGrid[j, i, 0]
0
here is a magic number. A named constant would be better.
Comments like this are unnecessary:
cell.BackColor = Color.White; // Color
It says nothing more than the code already does, it's rather noise. (Clean Code by Robert C. Martin: Chapter 4: Comments, Noise Comments)
- Shorter lines, without horizontal scrolling would be easier to read.
Just a few random notes:
- Instead of
i
andj
the variables could be called asrowNumber
andcolumnNumber
.
Update for Thomas's comment: Reading (and understanding) code usually takes time but it's usually not because of long variable or method names. I'd not optimize for character number. There are debates about this topic on Programmer.SE too. My favorite answer is nikie's one, beacuse of mentioning the short 7-slot (+-2) term memory.
-
cellGrid[j, i, 0]
0
here is a magic number. A named constant would be better.
Comments like this are unnecessary:
cell.BackColor = Color.White; // Color
It says nothing more than the code already does, it's rather noise. (Clean Code by Robert C. Martin: Chapter 4: Comments, Noise Comments)
- Shorter lines, without horizontal scrolling would be easier to read.
Just a few random notes:
Instead of
i
andj
the variables could be called asrowNumber
andcolumnNumber
.
Instead ofcellGrid[j, i, 0]
i
andj
the variables could be called asrowNumber
andcolumnNumber
.
Update for Thomas's comment: Reading (and understanding) code usually takes time but it's usually not because of long variable or method names. I'd not optimize for character number. There are debates about this topic on Programmer.SE too. My favorite answer is nikie's one , beacuse of mentioning the short 7-slot (+-2) term memory.
cellGrid[j, i, 0]
0
here is a magic number. A named constant would be better.
Comments like this are unnecessary:
cell.BackColor = Color.White; // Color
It says nothing more than the code already does, it's rather noise. (Clean Code by Robert C. Martin: Chapter 4: Comments, Noise Comments)
- Shorter lines, without horizontal scrolling would be easier to read.
Just a few random notes:
Instead of
i
andj
the variables could be called asrowNumber
andcolumnNumber
.cellGrid[j, i, 0]
0
here is a magic number. A named constant would be better.
Comments like this are unnecessary:
cell.BackColor = Color.White; // Color
It says nothing more than the code already does, it's rather noise. (Clean Code by Robert C. Martin: Chapter 4: Comments, Noise Comments)
- Shorter lines, without horizontal scrolling would be easier to read.
Just a few random notes:
- Instead of
i
andj
the variables could be called asrowNumber
andcolumnNumber
.
Update for Thomas's comment: Reading (and understanding) code usually takes time but it's usually not because of long variable or method names. I'd not optimize for character number. There are debates about this topic on Programmer.SE too. My favorite answer is nikie's one , beacuse of mentioning the short 7-slot (+-2) term memory.
cellGrid[j, i, 0]
0
here is a magic number. A named constant would be better.
Comments like this are unnecessary:
cell.BackColor = Color.White; // Color
It says nothing more than the code already does, it's rather noise. (Clean Code by Robert C. Martin: Chapter 4: Comments, Noise Comments)
- Shorter lines, without horizontal scrolling would be easier to read.
Just a few random notes:
Instead of
i
andj
the variables could be called asrowNumber
andcolumnNumber
.-
cellGrid[j, i, 0]
0
here is a magic number. A named constant would be better.
Comments like this are unnecessary:
cell.BackColor = Color.White; // Color
It says nothing more than the code already does, it's rather noise. (Clean Code by Robert C. Martin: Chapter 4: Comments, Noise Comments)
- Shorter lines, without horizontal scrolling would be easier to read.