Duplicated Code

One of the first principles we’re taught as developers: Don’t Repeat Yourself

Symptoms

  • You find yourself copy and pasting code from one place to another.
  • Shotgun Surgery⭐ occurs when changes to your application require the same small edits in multiple places.

Solutions