Documenting ParametersΒΆ
Sometimes, even a literal value used as parameter is not readable. An easy way to document the literal values is to provide the name of the paramter. Since the parameters need a smart name to be used in the method, using it in the method call provides more context to the parameter.
Another option is to make that literal value a constant, and use that constant to provide a readable name.