Once and only once

From CSSEMediaWiki
(Difference between revisions)
Jump to: navigation, search
(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...)
 
m (Reverted edits by Ebybymic (Talk); changed back to last version by AlexGee)
 
(4 intermediate revisions by 4 users not shown)

Latest revision as of 03:03, 25 November 2010

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.

See also

Personal tools