TL;DR: Avoid checking for boolean expressions and returning an explicit boolean. Problems Declarativeness Ninja Code Readability Arrow Code Solutions Return a boolean business formula value. Context When dealing with boolean formulas, it is ...

Markdown supported · ⌘↵ to post
Maxi Contieri
Thanks Maxi for this great writing. I totally agree with you. I very often introduce methods additional local variables just to make my code more understandable. 😊
Nate Sire
Coding in C++ Since Eight, Be Great
I often use object literals in place of if/else or switch statements. JS is nice about that.