From 10e6732977b961476c919742d1a9ba2216dfd6c8 Mon Sep 17 00:00:00 2001 From: Ashton McGlone Date: Mon, 17 Feb 2025 15:25:04 -0500 Subject: [PATCH] Update 'Code_Smells_Patterns/index.md' --- Code_Smells_Patterns/index.md | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/Code_Smells_Patterns/index.md b/Code_Smells_Patterns/index.md index c30ba8d..d5daf4c 100644 --- a/Code_Smells_Patterns/index.md +++ b/Code_Smells_Patterns/index.md @@ -1,25 +1,12 @@ # Code Smell Patterns -**Code Smells** are often signs that refactoring could be needed. That is not always the case, but these "smells" should be looked at further to dethermine if there is a need for refactoring. +**Code Smells** are often signs that refactoring could be needed. That is not always the case, but these "smells" should be looked at further to determine if there is a need for refactoring. [Duplicated Code](./Duplicated_Code.md) [Excessive Conditionals](./Excessive_Conditionals.md) -* Solution: It may be possible to break these conditionals up into smaller, more conscise methods that are easier to read and have a clear purpose. - -**Reocurring Parameter lists** - -* Force: Refactoring may be considered if a certian list of parameters keeps reappearing in many methods. - -For example: -``` -function(int a, int b, string c) -function2(int a, int b, string c) -function3(int a, int b, string c) -``` - -* Solution: It may be possible to group these parameters into an object and instead pass the object around to different functions rather than passing each parameter. +[Reocurring Parameter lists](./Reocurring_Parameter_Lists.md) **Big Objects**