3 ms·
But I don't really want that. I hate that my code is spread out over HTML, CSS and Javascript files, it makes it hard to see the whole. Javascript offers ways
by Scarblac 5y ago
But I don't really want that. I hate that my code is spread out over HTML, CSS and Javascript files, it makes it hard to see the whole.
Javascript offers ways to do everything only in Javascript. That's wonderful.
- Grollicus 5y agoI do agree with you. I'd go even further and say using vue helps build more maintainable websites in that it encapsulates components and thus keeps related things together. Also that it provides a separation of the data model and how it is displayed, so one can reason about both things separately. But, all that are not things this article is about. They just name five specific things you meet regularly in web design and that don't need JS anymore. And in that case it's valid as the browser will generally do things better than you do yourself, be more accessible and integrate better into different platforms / OSes.
- StevenWaterman 5y agoOff-topic, but this is a big reason why I love using Svelte. A `.svelte` file contains the HTML markup, JS code, and styling for that component. As an example: https://github.com/stevenwaterman/Lexoral/blob/stage/frontend/editor/src/audio/Playback.svelte https://github.com/stevenwaterman/Lexoral/blob/stage/fronten...