Well that's enough to reinforce my switch to 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.
Is 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...
Vue RFC: Expose logic-related component options via function-based APIs instead
131–140 of 253 posts
Re: Vue RFC: Expose logic-related component options via function-based APIs instead
#132But.....that's not a sufficiently compelling reason to change. Even with backwards compatibility, it still adds confusion to the mix, requires a huge effort in new/updating documentation, etc.
I can't really see how the benefits justify the effort.
Re: Vue RFC: Expose logic-related component options via function-based APIs instead
#133Re: Vue RFC: Expose logic-related component options via function-based APIs instead
#134Earlier quoted context omitted.
Why? Hooks are completely backwards compatible.
What about books, talks, blog posts, SO answers, etc? Is everyone going to rewrite all React literature with hooks?
The developers and documentation even advises against rewriting old components with hooks unless you need to.
Re: Vue RFC: Expose logic-related component options via function-based APIs instead
#135The whole html template is one long string literal. I prefer JSX, where the XML is treated as code rather than a long string that needs to be parsed.
I prefer this because it doesn’t require a build step.
Re: Vue RFC: Expose logic-related component options via function-based APIs instead
#136I might be totally and completely wrong, but changing everything does not help anyone except scratch the itch of the framework's designers. I'm pretty sure this is all with the best intentions, but this would be a disaster similar to how Angular suddenly changed everything . Not against change, but the API is fine. Just iterate and evolve it. disclaimer: Big fan of Vue, early user and conference attender..
Re: Vue RFC: Expose logic-related component options via function-based APIs instead
#137Earlier quoted context omitted.
> this would be a disaster similar to how Angular suddenly changed everything. To be fair to Angular, if they'd stuck with what they had, it'd have faded into obscurity far more than the current version has. Angular.js was great for its time, but lost most of its advantages as the web caught up, and what used to be its advantages started to become kludges.
The problem with Angular 1 is that it was slow and bloated, relatively speaking. Google could have improved on that instead of starting from scratch, or ok, start from scratch but use a different name.
Re: Vue RFC: Expose logic-related component options via function-based APIs instead
#138Earlier quoted context omitted.
So they should have renamed the whole framework when they added a single a new feature so people know they need to learn it before reading the examples?
It's not a new feature it's a complete new methodology.
Re: Vue RFC: Expose logic-related component options via function-based APIs instead
#139Earlier quoted context omitted.
If you learned React with hooks the class notation won't make sense, and viceversa.
This is what I don't get about hooks. Remembering Markbages great talk on 'Minimal API Surface Area'? How is having multiple ways of doing the same thing minimal API surface area? React is losing sight of what made it great when it came out. Do one thing, do it well, and do it the simplest way possible.
Re: Vue RFC: Expose logic-related component options via function-based APIs instead
#140Earlier quoted context omitted.
So they should have renamed the whole framework when they added a single a new feature so people know they need to learn it before reading the examples?
It's not a new feature it's a complete new methodology.
Beyond that, hooks are super simple and the complainers are just making a big deal out of nothing. They are just callback functions that you implement outside of a class instead of overloading arbitrary method identifiers like "componentDidUpdate".
You also don't have to use it.