diff --git a/Code_Smells_Patterns/Reocurring_Parameter_Lists.md b/Code_Smells_Patterns/Reocurring_Parameter_Lists.md new file mode 100644 index 0000000..213cd4b --- /dev/null +++ b/Code_Smells_Patterns/Reocurring_Parameter_Lists.md @@ -0,0 +1,14 @@ +**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. + +[Back to Index](./index.md) \ No newline at end of file