4 ms·
The summary of changes can be inferred, or generated automatically with gpt ;) "Why", on the other hand can be lost. Especially during refactoring. Let's say
by kolinko 4y ago
The summary of changes can be inferred, or generated automatically with gpt ;)
"Why", on the other hand can be lost.
Especially during refactoring. Let's say you removed some assertion / safety check from a function, because you verified that it's not necessary there. Without explaination in a commit, someone may not get your reasoning.
Same thing with renaming variables, reordering the code etc.
Comments may be useful in some cases, but in many cases there won't be a right place to put them in.