Flag arguments are a code smell

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 #code https://rubyonrails.ba/single/flag-arguments-are-a-code-smell

Nezir Zahirovic

Contractor Ruby On Rails (8+ years) / MCPD .Net / C# / Asp.Net / CSS / SQL / (11 years)

related articles