Shotgun surgery smell

From CSSEMediaWiki
(Difference between revisions)
Jump to: navigation, search
RobertLechte (Talk | contribs)
(New page: "Shotgun Surgery" refers to a change to one piece of code resulting in the need to change many other pieces of code. For instance, if you change the format of your XML, this should require...)
Newer edit →

Revision as of 02:23, 5 October 2008

"Shotgun Surgery" refers to a change to one piece of code resulting in the need to change many other pieces of code. For instance, if you change the format of your XML, this should require only one change to the code (in the parser). If you need to change the code in several places, then you're probably not abstracting/layering your parsing code properly, and you need to strongly consider refactoring.