2 ms·
Urg, I strongly disagree with this take. First, comment your damn code if you work with others so that they don’t waste time reverse engineering your code. Sure
by baby 6y ago
Urg, I strongly disagree with this take. First, comment your damn code if you work with others so that they don’t waste time reverse engineering your code. Sure use better variable and function names but do not create a function that can be inlined just to replace a comment... You’re adding abstraction and making your code less clear (which is not what you intended).
- sime2009 6y agoThe big take-home point here is that comments may be symptom of the code itself not being as clear as it could be. First priority is to make the code itself clearer, that will eliminate the need for a comment to "make it understandable".
- rootlocus 6y agoCompilers can inline functions. Functions can be tested, reused and composed. Comments usually rot.
- baby 6y agoIt’s about code clarity not optimizations.