Add 'Code_Smells_Patterns/Reocurring_Parameter_Lists.md'

main
Ashton McGlone 8 months ago
parent 10e6732977
commit b1b312923d

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