Code Smell 145 - Short Circuit Hack
TL;DR: Don't use Boolean comparison for side effect functions.
Problems
Readability
Side Effects
Solutions
Convert short circuit into IFs
Context
Smart programmers like to write hacky and obscure code even when there is no strong evidence for ...
maximilianocontieri.com2 min read
Gary McMeekin
Full Stack Cloud Developer
I wrote this same thing on Reddit recently and was downvoted to hell! I feel validated reading this.