diff --git a/Code_Smells_Patterns/Duplicated_Code.md b/Code_Smells_Patterns/Duplicated_Code.md new file mode 100644 index 0000000..713784f --- /dev/null +++ b/Code_Smells_Patterns/Duplicated_Code.md @@ -0,0 +1,5 @@ +**Duplicated Code** + +* Force: Refactoring may be considered if a common structure is recongized among related methods. + +* Solution: It may be possible to generalize smaller methods to allow them to work as one. However, you must be careful to not over generalize a method and allow it to have more power than nessecary. A good metric to measure by is that a method should have between 6-8 meaningful lines of code.