James Samuel
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?

--

--

James Samuel
James Samuel

Written by James Samuel

scaling and growing software teams | Creator of @hubofml | Growing together @ http://softwareleads.substack.com blogging @ https://hubofco.de

No responses yet