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…
Reference in new issue