Are Boolean Flags on Methods a Code Smell? - ardalis

added by DotNetKicks
4/15/2020 2:19:18 PM

368 Views

Recently I had one of my newsletter subscribers ask me a question about whether it was a good practice to use a boolean parameter to alter the behavior of a method. Martin Fowler describes (many of*) these as Flag Arguments. The topic is also covered in this StackExchange question.


0 comments