Flag arguments are a code smell
15-May-2017 2674
A flag argument is a boolean which causes the method to behave differently. It’s an indicator that the code is exercising multiple scenarios based on an external factor. A piece of code on a higher level decides with path to take through a lower level method.
Flag arguments are a code smell #ruby #rubydeveloper #rubyonrails #arguments #smell #code https://rubyonrails.ba/link/flag-arguments-are-a-code-smell