3 ms·
Coding styles is a solved problem. Use the feross/Standard tool or SemiStandard equivalent (ie if you prefer semicolons). Structure arguments will continue unt
by EvanPlaice 11y ago
Coding styles is a solved problem. Use the feross/Standard tool or SemiStandard equivalent (ie if you prefer semicolons).
Structure arguments will continue until the past decade of brain damage caused by trying to shoehorn MVC into front-end frameworks wears off.
The future is self-contained, reusable web components. Organize the structure by feature. Provide a root file that acts as an exports facade that maps the internals to an easy-to-understand public API.
- EvanPlaice 11y agoCorrection: I'm not implying that separating of concerns is bad. I'm saying that arbitrarily separating them into folders by-type at the base level is not a useful pattern when it comes to reusability.