Avoid booleans by default

Booleans make maintaining and changing code needlessly error-prone. Use enums instead. Method parameters What does the following function do? updateState(state, true); Specifically, what does true mean? What would it mean to be false? Modern IDEs may give the parameter name as a hint, but it’s still cumbersome to read. updateState(state, silent: true) A boolean in … Read more