2 ms·
>First of all, if comments lie, so do function names. So refactoring to replace all your comments with function-names is a waste of time This isn't my experien
by hackinthebochs 13y ago
>First of all, if comments lie, so do function names. So refactoring to replace all your comments with function-names is a waste of time
This isn't my experience at all. Comments don't need to be read, therefore the programmer has a greater chance of not realizing they are now out of sync with the code (this can happen on a project you're completely familiar with). Function and variable names must be read and comprehended to use, so it is much more likely that any divergence will be picked up. I completely agree with the author that descriptive function and variable names are much more valuable than comments, and thus the former should be heavily favored.