Discussion on: Here are Top 5 Best Practices for JavaScript you MUST ALWAYS FOLLOW

_ezell_ profile image
Ezell Frazier

Strong disagree with 2, 3, and 5.

Code is for humans. Readability is above all.

Concise code != Readable code

There will be times when a for loop is easier to read than a higher order array method.

For instance, handling async code within a map or reduce is far more difficult to read than a loop.

Very rarely will the lack of semicolons cause bugs or unwanted side-effects. Several linters and code editors can be configured to highlight exceptions.