| ▲ | Scarblac 4 days ago | ||||||||||||||||
Yes, but there are other ways to make it more understandable (like good names, idiomatic code, units that are neither too long nor too short) that are often preferable, because comments always have a danger of going out of sync with the code. The "why" is the part of the explanation that can't be deduced from the code. | |||||||||||||||||
| ▲ | croes 4 days ago | parent [-] | ||||||||||||||||
Sometimes good names etc. don’t help. Think of this https://en.wikipedia.org/wiki/Fast_inverse_square_root That definitely needs a what comment. | |||||||||||||||||
| |||||||||||||||||