9 ms·
... but there's a semantic difference between `const` and `let`... The least interesting component of style is syntax and form. Therefore use tooling to elimin
by agentultra 9y ago
... but there's a semantic difference between `const` and `let`...
The least interesting component of style is syntax and form. Therefore use tooling to eliminate such concerns from your code. Javascript is a syntactic mess with ASI, braces, indentation. Linters remove such concerns.
The important components of style are preference to declarative vs. imperative code, heavy use of `class`, the `prototype` chain, or preferring function composition and purity. These are the concerns your style guide should be focused on.
Javascript, like C++, is what I call a kitchen sink language. If you use all of it your code will be a frightening mess to maintain. Choose to use a subset of the features and stick to it.