DRY: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 2: Line 2:
* [[TPP|Pragmatic Programmer, The: From Journeyman to Master]] by Andrew Hunt and David Thomas
* [[TPP|Pragmatic Programmer, The: From Journeyman to Master]] by Andrew Hunt and David Thomas
=Internal=
=Internal=
* [[Software Architecture#Subjects|Software Architecture]]
* [[Software Engineering]]


=Overview=
=Overview=

Revision as of 22:01, 3 January 2022

External

Internal

Overview

Don't Repeat Yourself (DRY) principle sys: "Every piece of knowledge should have a single, unambiguous, authoritative representation within a system."

If you are in the position to write the second time the same behavior (copy-and-paste) that means the behavior belongs into a reusable function. Duplication forces people to make a change in multiple places, and that is not good.

DRY and Coupling

DRY and Coupling

Organizatorium