enums

enums

Avoiding Booleans

Brad Abrams recently posted another great excerpt from the unfortunately named .NET Framework Standard Library Annotated Reference Volume 2: Avoid creating methods with Boolean parameters. Boolean parameters make calls harder to read and harder to write. Indeed. What is the difference between... Authorization(“foo”, true) Authorization(“foo”, false) Who knows?

By Jeff Atwood ·
Comments