from Hacker News

VueJS turns 10 years old

by YourCupOTea on 2/3/24, 2:41 PM with 94 comments

  • by uallo on 2/3/24, 4:36 PM

    I like Vue a lot. It has a terrific documentation, good official—but mostly optional—tooling (Volar, Router, Pinia, Vite), built-in component-scoped styling, fine-grained updates (like signals, but already before it was cool), generates small bundles, their TypeScript support is great, their IDE support is great, single-file components are a blast to work with, and much more. What I also like is that their decisions are not rushed. They observe other frameworks and copy the best ideas from them but address the learnings and add even better versions of these features into Vue. They are rarely the first, but often (imho) the best.

    Thanks to all contributors and happy birthday!

  • by synergy20 on 2/3/24, 5:16 PM

    This is an amazing project, it tells yet another story how one guy can start a project ended up challenging big companies like Google(Angular) and Meta(React).

    While React is adding all those complexity by SSR and server component etc these days, Vuejs separates them wisely, if you need just the original SPA, use vuejs as-is, if you want SSR, add Nuxt.

    I am moving back from React to Vuejs after realizing how heavily React is nowadays affected by VC company Vercel, which has its own agenda of SSR-first(Next.js) and make React even further complicated, Vercel hijacked React in my opinion and made it no longer a "neutral" OSS project, so long, thanks for all the fish.

    On the same note, Vercel also bought up Svelte and made it SSR first.

    If you just need SPA and has no need for SSR, which made frontend even more complex, go with Vuejs.

  • by y-c-o-m-b on 2/3/24, 5:43 PM

    I've been in FAANG for a couple of years now and stuck in React world unfortunately. Prior to that I had to use Angular, which imo was even worse. I've had a couple of short opportunities to use Vue professionally in an enterprise application though and damn I loved every second of it. Vue is still my favorite by far. It's just so elegant with its simplicity, it allows me to actually focus on the app and not any bullshit cognitive overhead dealing with state or weird incoherent syntax (looking at you, Angular). I wish there was a larger adoption of Vue.
  • by code_runner on 2/3/24, 4:27 PM

    I really enjoyed vue for a large project back in the day. I seemed to have loved everything that everyone else here disliked... which is sometimes par for the course on HN.

    My project pre-dated the composition API and some other bells and whistles that I've never looked into since leaving FE projects... but IMO, a really good framework with a good community and lots of resources to learn.

  • by samwillis on 2/3/24, 5:32 PM

    I think it's a shame the reactivity/signals system from Vue 3 wasn't broken out as a separate project under a different name. They had so much success with building Vite as a separate project, and the reactivity system they built for Vue 3 is so good it warrants the same attention.

    It can, and is, used outside of Vue, see Alpine.js, but it's adoption would be so much greater if it was packaged under its own name.

    There is this project that even combines it with react: https://github.com/antfu/reactivue.

    I wish we had slightly looser compiling between templating and reactivity systems...

  • by monero-xmr on 2/3/24, 3:54 PM

    I dislike react and liked vue. However I’m on the svelte bandwagon now, which is similar to vue but improved. Basically sveltekit makes a lot of opinionated decisions for you but those are all good places to have opinions.
  • by timetraveller26 on 2/3/24, 5:12 PM

    "Vue.js: JavaScript MVVM made simple (2014)" https://news.ycombinator.com/item?id=7169288 (Referenced in tweet)
  • by alexcroox on 2/3/24, 6:18 PM

    What I love about Vue/Nuxt devs are not only the powerful tooling they create, but the way they build it so any framework can utilise it. Biggest examples are Vite, Unjs, Nitro. Plus I love the way they think about providing so much flexibility with deployments. Want to deploy your SSR Nuxt app to Cloudflare workers? It’s a 1 line config change in the Nitro config
  • by codethief on 2/3/24, 3:37 PM

    I still don't understand why they had to introduce a proprietary file format. It means that, instead of being able to rely on existing tools for type checking & proper IDE support (like React does), you need custom tools for that custom file format. Unfortunately, developing those takes time – apparently more than 10 years: To this day (I set up a new Vue project just a few days ago) there are countless bugs in vue-tsc and Volar.

    What's worse, type checking was largely an afterthought in the development of Vue. Can we, as an industry, please finally agree that languages & frameworks with proper (tools for) static type checking are infinitely better than those without, instead of having to painfully re-learn that lesson time and again? Heck, even Python devs are using type hints these days!

  • by jthemenace on 2/3/24, 6:17 PM

    We have a large legacy PHP code base originally using "xajax" in many places for asynchronous parts of the UI. We've pretty much got somewhat of our own "framework" and any sort of re-write is absolutely out of the question. We have been slowing replacing xajax with VueJS via a script tag and it's been working great for us as a modern / supported alternative to xajax . There are certain VueJS niceties we can't take advantage of because of the script tag approach, but that hasn't been a big deal.
  • by tgsovlerkhgsel on 2/3/24, 3:44 PM

    I started using VueJS when I got thrown off the deprecation treadmill by Angular.

    Regardless of whether something is a hobby project that you want to only touch a couple times a year or a big project with dozens of developers, having your platform deprecated under your feet and being forced to do migration work sucks.

    Vue is now on version 3 within 10 years. That means anyone who relied on v1 has had their work churned away under their feet, twice.

  • by huqedato on 2/6/24, 6:42 PM

    Really loved it 7-8 yrs ago. It was a revelation (after bad experiences with Angular). Now I'm finding it a bit on the heavy side...

    I switched to Svelte and more recently to Solid.

  • by rpmisms on 2/3/24, 5:52 PM

    Thanks for 10 years of opinionated, efficient UI dev!
  • by coding123 on 2/3/24, 5:14 PM

    To me Vue is just a maintained version of angular 1