5 ms·
The article is about DRY, but it opens talking about clean code. IMO, "clean" is a poor word to use when evaluating code quality, not because there is no clean
by betenoire 6y ago
The article is about DRY, but it opens talking about clean code. IMO, "clean" is a poor word to use when evaluating code quality, not because there is no clean code like the author says, but because clean is an undefined subjective judgement call. What do we _mean_ when we say clean? Easy to debug? Follow? Maintain? Extend? Predict? These are more objective qualities and can be quantified. I think using more precise language instead of "clean code" results in ... uh.. cleaner code? lol
- potta_coffee 6y agoI know someone that hates "for" loops and views them as "unclean". I find this aggravating.
- ZephyrBlu 6y agoAfter getting used to .map() and .forEach() in JS, I have become far more fond of those methods than for loops.
- potta_coffee 6y agoI used those methods too, but I don't have the dogmatic opinion that loops are not "clean code".