Clean Code: Intro, Clean Code and Meaningful Names (up to the end of chapter 2)

Jeroen Vermeulen jeroen.vermeulen at canonical.com
Tue Sep 17 06:02:16 UTC 2013


On 17/09/13 12:42, Andrew Wilkins wrote:

> I don't think many people will disagree that deduplication of code is a
> bad idea in general. However, as with database denormalisation, there
> are exceptions to the rule. If in the process of deduplicating you make
> things considerably more complicated to handle the genericity, then what
> have you gained?

I don't think "deduplication" quite does Tim's words justice.  Capable 
doctors don't just de-fever patients!

Tim described duplication as a symptom.  The difference is in 
identifying the cause.  Sometimes it takes you in much better directions 
than the pursuit of de-duplication itself, and sometimes it leads you to 
accept mild symptoms over the alternatives.


Jeroen



More information about the Juju-dev mailing list