Duplication

DRY Principle (Don't Repeat Yourself).

  • Duplication = missed opportunity for abstraction
    • make it subroutine / another class / etc

Why

  • raise abstraction level: faster / fewer bugs
  • design for change
  • design for reuse

More?

Avoid doing duplicated things is the purpose of inventing computers.