The best comment is the one the code cannot make
A comment that restates the code is a second copy, kept by hand, and it drifts. The comment that matters most is the one the code cannot make for itself: the constraint you were working around, the choice you made, and the alternative you threw away.