Update 'Code_Smells_Patterns/Duplicated_Code.md'

main
Ashton McGlone 8 months ago
parent f8ef669682
commit 6b73aafa74

@ -3,3 +3,6 @@
* Force: Refactoring may be considered if a common structure is recongized among related methods. * 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. * 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.
[Back to Index](./index.md)
Loading…
Cancel
Save