4 ms·
I guess it may be because you don’t remember the Boolean operations precedence? For me it’s much, much, much easier to parse the second expression in your post
by tigershark 8y ago
I guess it may be because you don’t remember the Boolean operations precedence?
For me it’s much, much, much easier to parse the second expression in your post than the first monstrosity.
Obviously it depends from the complexity of the expression, just 1-2 weeks ago I refactored an over-complicated Boolean expression to an if-else.
But in this case I’m really overwhelming in favour of the extremely simple Boolean expression, and whenever I see an over complicated if I refactor it to a simpler Boolean expression if it’s possible.