#javascript
Read more stories on Hashnode
Articles with this tag
The Ternary Metaprogramming Trap · TL;DR: Avoid using ternary operators for dynamic method calls Problems Reduced code readability Increased debugging...
Don’t Overcomplicate: Keep It Simple · TL;DR: Overdefensive code leads to unnecessary complexity. Problems Unnecessary complexity Confusing...
Don't abuse this fancy operator · TL;DR: Use comma operator just for loops Problems Readability Hidden Defects Solutions Avoid operator...
Array creation is homogenous and predictable, or is it a hack? · TL;DR: Be very careful with Javascript Arrays. Problems The Least surprise principle...
Which is better, declarative or shorter code? · TL;DR: Be declarative enough but no more. Problems Readability Premature Optimization Solutions Use...
Bitwise operators are faster. Avoid these micro-optimizations · TL;DR: Don't use bitwise operators unless your business model is bitwise...