DRY: Difference between revisions
Jump to navigation
Jump to search
Line 9: | Line 9: | ||
=DRY and Coupling= | =DRY and Coupling= | ||
{{Internal|Coupling#DRY_and_Coupling|Coupling | DRY and Coupling}} | {{Internal|Coupling#DRY_and_Coupling|Coupling | DRY and Coupling}} | ||
=Organizatorium= | |||
* The "rule of three" for software reuse suggests the you should turn something into a reusable component when you find three places that you need to use it. https://blog.codinghorror.com/the-delusion-of-reuse/ Facts and Fallacies of Software Engineering https://www.amazon.com/exec/obidos/ASIN/0321117425/ |
Revision as of 20:59, 21 December 2021
Internal
Overview
Don't Repeat Yourself - DRY: 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.
DRY and Coupling
Organizatorium
- The "rule of three" for software reuse suggests the you should turn something into a reusable component when you find three places that you need to use it. https://blog.codinghorror.com/the-delusion-of-reuse/ Facts and Fallacies of Software Engineering https://www.amazon.com/exec/obidos/ASIN/0321117425/