4 ms·
Well that's enough to reinforce my switch to https://svelte.dev https://svelte.dev I want a JS framework simple enough that even hobbyist devs can understand i
by treelovinhippie 7y ago
Well that's enough to reinforce my switch to https://svelte.dev https://svelte.dev
I want a JS framework simple enough that even hobbyist devs can understand in an afternoon.
React syntax is an overly complicated mess; like reactivity forcing itself onto HTML.
Current Vue syntax is neat, simple and clear; like HTML with added reactivity.
- mlevental 7y agobut isn't it likely that svelte will undergo the same scope creep eventually?
- treelovinhippie 7y agoHopefully they recognise their niche and stick to it. I'm particularly interested in Svelte for compiling down to vanilla WebComponents to be used in P2P apps (eg Holochain) where you want the end users to be able to modify components themselves.
- ergo14 7y agoSorry, but seems Rich is not too happy with WC', if you want to do use a compiler to vanilla WC's I think stenciljs might be your best option. LitElement is also good - but it is not a compiler. Svelte V3 doesn't even have custom element section documented at all at the time of the writing.
- TehShrike 7y agoSvelte has supported compiling to custom elements for over a year.
- ergo14 7y agoWhere are the docs for that?
- TehShrike 7y agoSee the `customElement` and `tag` compile options https://svelte.dev/docs#svelte_compile https://svelte.dev/docs#svelte_compile Here are the docs from v2 https://v2.svelte.dev/guide#custom-elements https://v2.svelte.dev/guide#custom-elements
- ergo14 7y agoYes but svelte is on v3 - I'm asking about that.
- arxpoetica 7y agoThat first link was to the v3 docs. Here it is again for your convenience: https://svelte.dev/docs#svelte_compile https://svelte.dev/docs#svelte_compile
- ergo14 7y agoThere is also, Custom element API section that is "TODO". Yes I saw those options the first time, but woulnd't you say the documentation is limited ;) if such is the case. So far I see 2 sentences related to the subject, compare that to V2 docs. I will try to see how svelte performs for this, but so far Vue wc-wrapper seems to be the most promising option out of "non-wc first" ecosystems.
- arxpoetica 7y agoFar, far less likely. Svelte has undergone some changes, and will continue to do so, but the latest round of change swung heavily in favor of USING THE LANGUAGE. Most of what you write in Svelte, with some notable exceptions, is vanilla JavaScript. We in the Svelte world love it so much, it seems highly unlikely there will be any drastic switch from what we've all grown to love. (It's truly fantastic, give it a whirl: https://svelte.dev/repl/hello-world?version=3.5.3 https://svelte.dev/repl/hello-world?version=3.5.3) (Side note: I actually clicked on this link hoping Vue was learning a similar lesson, only to be disappointed.)
- undoware 7y agoA JS framework that a hobbyist can understand in an afternoon is frequently, but not always, not a framework that works at cloud scale. I support all the choices you make, but there are those of us who have good reason to value useful complexity. <3
- ng12 7y ago> React syntax is an overly complicated mess; like reactivity forcing itself onto HTML. What now? Are you talking about JSX? If so, it's pretty straightforward (and optional).
- eximius 7y agoIs Svelte 3 production ready? I've been meaning to start a project with Svelte 3, but I'm not sure what tools to use. Is Sapper ready for v3 or is it still mostly on v2? I've also somewhat been hoping that Svelte 3 will get TypeScript support so I can have a typed interface between my Svelte frontend and my Rust backend...
- michaelchris 7y agoOn what I've read, Sapper is still v2. Understandable I guess since Svelte has a small community.
- KitDuncan 7y agoYou can use Sapper with v3 already and could for a while now. It's RC for now though.
- TehShrike 7y agoSvelte has been production ready for a while now (I've had it in production for 2+ years). Svelte 3 was released 2 months ago, but TypeScript support is still in the works: https://github.com/sveltejs/svelte/issues/1639#issuecomment-442974572 https://github.com/sveltejs/svelte/issues/1639#issuecomment-...