We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 59359a8 commit 3835cefCopy full SHA for 3835cef
1 file changed
README.md
@@ -380,7 +380,11 @@ If the function has a single responsibility, consider if you can bundle
380
some or all parameters into a specialized object that will be passed as an
381
argument to the function. These parameters might be attributes of a single
382
entity that you can represent with a dedicated data structure. You may also
383
-be able to reuse this entity elsewhere in your program.
+be able to reuse this entity elsewhere in your program. The reason why this is
384
+a better arrangement is than having multiple parameters is that we may be able
385
+to move some computations, done with those parameters inside the
386
+function, into methods belonging to the new object, therefore reducing the
387
+complexity of the function.
388
389
**Bad:**
390
0 commit comments