3 ms·
> Why repetition is the opposite of cleaneness in the first place? It's an idiom after the book by Robert Martin, whose central theme sits around heavily refac
by zmmmmm 7y ago
> Why repetition is the opposite of cleaneness in the first place?
It's an idiom after the book by Robert Martin, whose central theme sits around heavily refactoring code to remove repetition and in fact even non-repetitive code. The first few chapters hammer the concept that functions should be extremely short and aggressively refactored to compose them into subfunctions. It essentially coined the concept of "clean" code in these terms.
- sebastianconcpt 7y agoGood clarification! Thanks! I didn't read that one, although, I generally like Rober Martin, I really don't like when language figures go too far. If pushed one bit too far it becomes propaganda in a culture war instead of a healthy intellectual honest discussion. What we know as flamewars is an example of that.