8th Light: Day 99

19 May 2016 . 8thlight . Comments #apprenticeship #8thlight #software #code-smells

Code smells: Shotgun surgery

Making any modifications requires that you make many small changes to many different classes. - sourcemaking.com

This smell happens when many little modifications in different classes need to be done in order to add a single feature.

Ways to fix having to perform shotgun surgery are:

The benefits include:

  • Better organization of code
  • Less duplication
  • Better maintainability