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.js is Wikimedia Foundation's future JavaScript framework

353 pointsby Volker-Ealmost 4 years ago

23 comments

ferdowsialmost 4 years ago
Congratulations to the Vue team, this is definitely a big win for them.<p>Reading through the RFC is really interesting. They specifically call out the dependency on Facebook as effectively being React&#x27;s Single Point of Failure, citing their negative experiences with HHVM.<p>And for all of the love that people give React&#x27;s big shifts (like hooks), the RFC specifically counts this against them, given that best practices have shifted so drastically in the last few years.
评论 #28044002 未加载
评论 #28045329 未加载
评论 #28043346 未加载
评论 #28044014 未加载
zkldialmost 4 years ago
I feel like I&#x27;m in an alien world when it comes to Vue - it has this weird pattern of making strings do loads of heavy lifting.<p>The Github Commits[1] example on their documentation has a load of stuff that just doesn&#x27;t sit right with me.<p>Things like<p><pre><code> v-for=&quot;record in commits&quot; </code></pre> to loop over something is insane to me - this isn&#x27;t code, this is a string inside a html attribute! How can you get any sort of good type analysis&#x2F;variable checking&#x2F;syntax highlighting inside this?<p>Similarly, accessing properties like<p><pre><code> :href=&quot;record.html_url&quot; </code></pre> has the exact same issues - what if there&#x27;s a typo here? My IDE can&#x27;t highlight that this is wrong because it&#x27;s *not code* and is just a string.<p>Maybe I&#x27;m just the odd one out here, but vue (and angular) love to use strings as a makeshift programming language, which to me is a major smell.<p>^[1]: <a href="https:&#x2F;&#x2F;v3.vuejs.org&#x2F;examples&#x2F;commits.html" rel="nofollow">https:&#x2F;&#x2F;v3.vuejs.org&#x2F;examples&#x2F;commits.html</a>
评论 #28046166 未加载
评论 #28046033 未加载
评论 #28045246 未加载
评论 #28046933 未加载
评论 #28045118 未加载
评论 #28045471 未加载
评论 #28046635 未加载
评论 #28046852 未加载
评论 #28048024 未加载
评论 #28045847 未加载
评论 #28046414 未加载
vagrantJinalmost 4 years ago
I&#x27;d clap harder if Vue weren&#x27;t so desperate to become React and focus on their own strengths. React certainly appealed to a lot of devs who at best disliked working with HTML &amp; CSS, but Vue welcomed everyone with an excellent gentle slope to gently move devs away from direct Dom manipulation and embrace reactive paradigms. Folks with small shops could now refactor their codebases with relative ease.<p>If only the Vue team could understand, we don&#x27;t want React features. We&#x27;ll use React when we want them. We want Vuejs.
评论 #28046796 未加载
timdorralmost 4 years ago
Most of the discussion behind this decision, including feedback directly from Evan You (author of Vue), is here: <a href="https:&#x2F;&#x2F;phabricator.wikimedia.org&#x2F;T241180" rel="nofollow">https:&#x2F;&#x2F;phabricator.wikimedia.org&#x2F;T241180</a><p>It&#x27;s pretty interesting to read through.
评论 #28043343 未加载
sativalldayalmost 4 years ago
Love Vue.<p>Polymer 2.0 with its HTML imports still offered a better DX in my opinion.<p>Svelte offers a better DX than both of those frameworks.<p>I don&#x27;t even bother with FE anymore, more focused on BE&#x2F;infra - but Svelte is always a pleasure to work in.
评论 #28045265 未加载
评论 #28045740 未加载
rank0almost 4 years ago
Am I the only one who still has a preference for vanilla js?<p>Maybe it’s just my use cases, but every time I try to use a high level framework like vue or react I am immediately bogged down by unnecessary abstraction and complexity.<p>Again, I’m no UI dev so please correct me if I’m wrong! I have pretty simple needs for web app UI usually…I’m not trying to build Facebook. Why do I need react&#x2F;vue&#x2F;whatever?
评论 #28046613 未加载
评论 #28046679 未加载
评论 #28047349 未加载
评论 #28046608 未加载
评论 #28047896 未加载
评论 #28135253 未加载
评论 #28048062 未加载
russellbeattiealmost 4 years ago
Huh. They&#x27;re still deciding on whether to use Vue 2 or Vue 3... To me that&#x27;s a definitive sign that Vue chasing after React&#x27;s insane hooks system was a bad idea. I hope they figure out how to heal the rift before it&#x27;s too late before we get another Python 2&#x2F;3 situation.
gherkinnnalmost 4 years ago
A solid choice and well reasoned. It was a joy to read all of the discussions.<p>Been following Vue and Evan’s work since 2015, before it even reached 1.0. I think it strikes a good balance between the freedom of React and the rigidity if Angular. (Interpret the terms “freedom” and “rigidity” as you please.)<p>My only problem with Vue 2.x was the bad TS support, but I trust 3.x solves that.
评论 #28043650 未加载
adevxalmost 4 years ago
I really enjoyed working with Vue 2 until I started using TypeScript.<p>Vuex, the goto state manager just wasn&#x27;t built for it (I ended up using vuex-module-decorators). Type safe templates were only partially possible with Vetur (vs code extension) but it was slow and resource hungry. I&#x27;m sure in Vue 3 this is much better now, but while evaluating to migrate to v3 this wasn&#x27;t the case.<p>I became interested in React, because I was looking for a way to generate type safe email templates. Started using .tsx files with a library called typed-html and loved it so much that I end up migrating to React (now rendering email templates with ReactDOMServer.renderToString(element).<p>Still miss Vue&#x27;s simplicity at times but having rock solid TypeScript support is something I value more.
评论 #28046508 未加载
threatofrainalmost 4 years ago
Previous big discussion:<p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=22625556" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=22625556</a> (March 2020)
评论 #28043378 未加载
评论 #28043421 未加载
nojvekalmost 4 years ago
Over more than a decade I have gone through Adobe Flex, jquery, vanilla js, angular 1 &amp; 2, vue 1 &amp; 2, React, a bit of svelte, web components, my own custom state mgmt libraries.<p>The fundamental idea behind most modern FE frameworks remain the same. View is a function of state. The hardest problems in FE are state management and CSS&#x2F;dom layout.<p>So as long as someone knows what they are doing any of the modern frameworks do a decent job. I have seen bad code in every framework.<p>So if the Wikipedia team knows Vue very well and yield its powers, may the force be with them.<p>Use the framework your team knows best. It’s really about the players more than the instrument.<p>I personally like React. It solves many of the pain points I’ve experienced over 10+ years. I’ve invested a lot of time learning it in depth. If someone told me to write react from scratch with hooks api, I know how to do it.<p>Seems Wikipedia chose Vue because folks knew Vue in depth. That’s a good way to move forward.
qmmmuralmost 4 years ago
Not even a consideration of svelte?
评论 #28044417 未加载
评论 #28044155 未加载
评论 #28044081 未加载
评论 #28046225 未加载
dzongaalmost 4 years ago
react is api stable, but not api stable if you know what I mean. with react, the ground is always shifting underneath you, which something like wikimedia probably don&#x27;t have the resources to keep up with. even, as someone who has done react professionally, I can advise any small nimble teams, out there react ain&#x27;t for ya. it don&#x27;t love ya. however, for the big enterprisey apps, yeah react is good.
评论 #28046118 未加载
评论 #28044109 未加载
Daedrenalmost 4 years ago
From reading the RFC, I do feel like the choice for Vue.js was already made from the get-go. A few of the concerns laid out were brushed aside without much pondering (At least pondering within the thread, I don&#x27;t know about the IRC channel)<p>Vue&#x27;s deprecation process is still a big problem in my view. Migration from Vue 2 to 3 is a painful one, while React doesn&#x27;t have this problem. You can argue that component writing practices have changed over the past years in React, but the old ones all still work, while Vue 2 components just don&#x27;t work in 3.<p>EvanYou&#x27;s comments about a future &quot;compatibility build&quot; for 3 that works with 2 is honestly still a bit worrying. I&#x27;m glad it exists but it just so easily convinced them. Is there going to be a performance penalty? Will it all work out of the box?
codethiefalmost 4 years ago
&gt; - Deciding on Vue 2 or Vue 3 including transition path<p>Am I the only one here who absolutely <i>hates</i> Vue 2? No TypeScript support and no type safety at all (neither for props, nor for events, nor for provide&#x2F;inject); many identifiers and references are hard-coded strings, making it very hard to discover dependencies between different parts of the code; `this` gets implicitly populated with props, data, computed, methods all at the same time and in some order that still escapes me; refactoring support even in IntelliJ&#x2F;WebStorm is full of bugs (hardly a surprise given the missing type safety); horrible documentation (&quot;Here&#x27;s an example&quot; != documentation); no proper two-way binding (i.e. one that doesn&#x27;t produce change detection cycles). I could go on and on and on…
Scarbuttalmost 4 years ago
Sprinkle all the Vuejs you need, but please don&#x27;t make Wikipedia a SPA.
评论 #28045822 未加载
geenatalmost 4 years ago
No obvious advantage or win for wikimedia?<p>* More complex, slower build process.<p>* Increased barrier for development.<p>* ECMAScript has been evolving so quickly lately that it will probably supersede Vue in the near future anyway. The true &quot;futureproof&quot; choice is to continue evolving with the latest ECMAScript spec.<p>* <a href="https:&#x2F;&#x2F;htmx.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;htmx.org&#x2F;</a>
评论 #28070554 未加载
ggregoirealmost 4 years ago
Can I see the code for the TypeaheadSearch component somewhere? (I followed some links but didn&#x27;t find it)
评论 #28043647 未加载
Exumaalmost 4 years ago
An excellent choice
cyberpsybinalmost 4 years ago
Wish Vue would just adopt JSX. Any web framework that invents another templating language force users to learn a whole new thing with it&#x27;s own gotchas. So much unnecessary mental overload.
评论 #28046992 未加载
h_anna_halmost 4 years ago
I guess soon enough I will not be able to have open more than a few pages of wikipedia at the same time.
huuggjkkkkalmost 4 years ago
Good luck getting any libraries working. Good luck using graphql. Good luck getting the tooling stable. Good luck getting a PR on the main code base done. Vue in production is a minefield of nightmares.<p>Rather have Facebook as a single point of failure than some random dude who has other things that consume his interest.
评论 #28043933 未加载
评论 #28044989 未加载
animanoiralmost 4 years ago
Beautiful. Vue is the future, any other framework, specially React, isn&#x27;t
评论 #28047616 未加载