5 ms·
Like the other commenter mentioned, you should look at Svelte. I had the same perspective as yours and I've worked on multiple modern JS frameworks and Svelte i
by thunderbong 6y ago
Like the other commenter mentioned, you should look at Svelte. I had the same perspective as yours and I've worked on multiple modern JS frameworks and Svelte is the closest I can get to mapping my mental model of how a web page works (HTML, CSS, JS) with the framework.
Actually, I should correct myself - yes, the breakdown in terms of technology is HTML, CSS, JS but the underlying abstraction is actually - structure, presentation and functionality.
This is where, imho, Svelte really shines. It helps you to map your mental model of structure, presentation and functionality to it's corresponding implementation of HTML, CSS, JS with a sprinkle of syntactic sugar. This goes way far in keeping the code easy to understand and maintainable in my opinion.
- TekMol 6y agoSee https://news.ycombinator.com/item?id=26723219 https://news.ycombinator.com/item?id=26723219
- SahAssar 6y agoSvelte does three things that I disagree with: uses unconventional JS-ish syntax (like '$:' labels and how it does import/export), requires a very framework-specific templating language and requires a large build step. Since those are pretty central to how svelte is used and it's philosophy I don't think svelte is a good fit for me, personally. We all value different things in different frameworks, and that's great!
- audience_mem 6y agoI agree. I've learnt my lesson and I will _NOT_ be running "npm install" on any greenfield projects anymore. I like the idea of Svelte but I do not like its dependency on npm/node. At least with Vue I can just include the library into the page, with no mandatory build step.
- edoceo 6y agoHave y'all looked at RiotJS? My current favourite, not in my way, easy to reason about JS toolkit for building (all or part) of web-interface
- smt88 6y agoThe trade-off is performance. If you don't build your application, you're offloading work to the client. In the case of Svelte, you're also likely increasing the size of your site, since it transpiles down to simple JS instructions rather than abstracted framework calls.