Once and only once
From CSSEMediaWiki
(Difference between revisions)
(New page: The idea here is that no code should be repeated if that code is being used to perform the same operation. This refers to Duplicate code smell More specifically no behaviour should be...) |
|||
Line 3: | Line 3: | ||
More specifically no behaviour should be duplicated. Any place where this is found to be happening [[Extract Method]] should be applied. | More specifically no behaviour should be duplicated. Any place where this is found to be happening [[Extract Method]] should be applied. | ||
+ | |||
+ | There is a nice quote in [[Don't repeat yourself| DRS]] that sums it up much better than i can. | ||
== See also == | == See also == |
Revision as of 21:15, 24 September 2008
The idea here is that no code should be repeated if that code is being used to perform the same operation. This refers to Duplicate code smell
More specifically no behaviour should be duplicated. Any place where this is found to be happening Extract Method should be applied.
There is a nice quote in DRS that sums it up much better than i can.