4 ms·
If the method takes so many arguments that named parameters is necessary for readability, it is often a sign that the method is either too complex and should be
by qw 2y ago
If the method takes so many arguments that named parameters is necessary for readability, it is often a sign that the method is either too complex and should be split up, or that the method should accept a "config" record as a parameter. I this makes it clearer because you can group the parameters and give them meaning. Then you know that "url", "headers" and "body" belongs to the "request" record, while "customerId" and "taskId" are separate