Vue RFC: Expose logic-related component options via function-based APIs instead
71–80 of 253 posts
Re: Vue RFC: Expose logic-related component options via function-based APIs instead
#72I've been following the Vue + TypeScript progress on and off for the past couple years (ever since I converted a React project to Vue and threw out TS in the process, since it was just so fundamentally incompatible with Vue's APIs). This is a pretty wild change compared to the now-abandoned class proposal, and I'm somewhat bummed by it, but I'll admit that's mostly due to my continued skepticism of hooks (as someone…
Re: Vue RFC: Expose logic-related component options via function-based APIs instead
#73I 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..
Couldn’t agree more, this is the reason I bailed on Angular. Not smart.
What the hell.
Re: Vue RFC: Expose logic-related component options via function-based APIs instead
#74I 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..
While I don't disagree about the fact it will likely cause a split similar to Angular, they seem quite explicit about the reasons (not to scratch the itch of the framework's designers). For me, working in a large project with TypeScript vs one in vanilla JavaScript makes all the difference in terms of how maintainable it is. The number and the nature of the tests I need to write for such project changes, the IDE tool…
99% of people that got into Vue.js use it because it felt like an anti of the ever changing, dragon chasing JS world.
Changing the syntax will almost certainly yield zero benefits to the folks out in the field running apps for their businesses. They will end up with the same app, with the same functionality, just $100k lighter due to hours burnt on refactoring to the “function based” API.
Everyone roles their eyes and the bad wrap Javascript has continues.
Re: Vue RFC: Expose logic-related component options via function-based APIs instead
#75If you have comments, this is where to tell the vue team: https://github.com/vuejs/rfcs/pull/42
Re: Vue RFC: Expose logic-related component options via function-based APIs instead
#76Earlier quoted context omitted.
Well, with React you can "opt in" when searching by simply adding "hooks" to the search term. Such wasn't possible with Angular back then
Since the majority of the community will probably be using hooks from now on it will be assumed that is the default React methodology which will break books, talks, blog posts, SO answers, etc.
Re: Vue RFC: Expose logic-related component options via function-based APIs instead
#77Quick reminder that you can still write complex and useful form-driven web applications with no JavaScript at all.
Re: Vue RFC: Expose logic-related component options via function-based APIs instead
#78I 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..
> 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.
Re: Vue RFC: Expose logic-related component options via function-based APIs instead
#79FINALLY. What took so long? Seemed like we're long overdo for a big syntax change to take up engineering time with no real gain. I should have never left C.
Did you read the linked motivations?