1 min readJan 7, 2019
Fran Depascuali I agree strongly with your second point (hasSufficientAmount is more descriptive) but on the first, I would not say I agree entirely. I may agree that “switch and if statements” cannot be totally avoided but I always see an opportunity to refactor or rethink one’s approach in a situation where one needs to write multiple switch cases in one function: for example, 6 switch cases. Can we say 6 states are not finite?