TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Vue: We no longer have any plan of deprecating the Object API

161 pointsby dtienalmost 6 years ago

10 comments

nlhalmost 6 years ago
I have to admit - I had the same reaction that many people had when the function api first appeared (&quot;what is this insanity and why are you breaking everything i love&quot;).<p>But I read through, checked out the new (simpler) example, read Evan&#x27;s arguments about logical task grouping, and on a second read with a more-open mind, I actually kind of like the new syntax and am now looking forward to trying it out.<p>I&#x27;m glad they agreed to keep the object syntax around though :)
评论 #20267749 未加载
TeMPOraLalmost 6 years ago
Reading the comments here and on previous Vue thread, I see a nice example of psychological reactance at play. First, it was &quot;You&#x27;re going to replace the API? No no don&#x27;t do this, don&#x27;t force us to use this new thing that sucks over the old better one!&quot;. Now, it is &quot;Oh, so you&#x27;re not going to replace the old API? Come to think of it, the new API is a really nice idea, has some pretty useful concepts in it!&quot;.<p>:).
评论 #20268921 未加载
评论 #20268803 未加载
superasnalmost 6 years ago
I think the best part about Vuejs right now is how simple it is and everything just works!<p>A vue component is still as simple as {template: &#x27;hi&#x27;}. You don&#x27;t need webpack or any transliteration for it to work. Just drop the script tag like the good old jQuery and it&#x27;s working! No wonder it has gained so much popularity as I don&#x27;t think you can make it more KISS.<p>Transition from vue1 to vue2 was really simple. I just hope that when the dust settles and things are finalized, Vue remains true to it&#x27;s core of keeping things simple.
评论 #20269223 未加载
mooglyalmost 6 years ago
As a TypeScript user who always disliked the object API and preferred vue-class-component, I feel a bit left out in the fallout of this. JavaScript users are always the loudest. IMO there is no clear, great option for people who are TS devotees. Again it feels like TS was an afterthought.<p>Will have to experiment a bit. Maybe it&#x27;s possible to do something decent with some helper functions.
评论 #20268479 未加载
评论 #20269595 未加载
评论 #20270491 未加载
评论 #20268309 未加载
skunkworkeralmost 6 years ago
I&#x27;m glad they listened, and after reading more into some of the use cases there are times in which having this function api could be very helpful to group certain parts of the code together.<p><a href="https:&#x2F;&#x2F;dev.to&#x2F;stefandorresteijn&#x2F;vuejs-is-dead-long-live-vuejs-1g7f" rel="nofollow">https:&#x2F;&#x2F;dev.to&#x2F;stefandorresteijn&#x2F;vuejs-is-dead-long-live-vue...</a>
评论 #20267096 未加载
bfrogalmost 6 years ago
I think the new API is great, I think the terms compatible&#x2F;deprecated scared everyone
codingstuffsalmost 6 years ago
I was pretty worried, both by the deprecation of the Object API, and if the Vue team would listen to feedback on RFCs (and change parts if necessary).<p>Very glad to see that both points turned out well. I was really not looking forward to trying to find&#x2F;learning yet another JS framework.
datpuzalmost 6 years ago
Glad they listened!
aviniumalmost 6 years ago
Kudos to Evan and the team for listening to the community. There was a big pushback against the RFC, which can sometimes be attributed to sticks in the mud.<p>In this instance, though, I do feel that the changes weren’t necessary. All API changes come with a cost, and I’m unconvinced that the benefits outweighed it this time round.
devoplyalmost 6 years ago
Glad this is a publicly funded small team project that responds to its users rather than trying to push developer agenda on everyone.
评论 #20266980 未加载