Add 'Code_Smells_Patterns/Duplicated_Code.md'

main
Ashton McGlone 8 months ago
parent cd382db423
commit 8253e5b9a9

@ -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.
Loading…
Cancel
Save