News for hackers. Stuff that matters.
Re:Vue.js v3 released (pre alpha) by rolleiflex on Friday October 04, 2019 @03:10PM (#21160900)
I’m using Vue as a UI for a desktop app for developer collaboration (https://aether.app), whose Vue part is about 60,000-70,000 lines of code. I guess this makes me a large, advanced user.

I don’t get it. Seriously, Vue 2 is great, so much fire and forget. There’s a bunch of problems that I am supposed to have, which justifies these changes, but I really don’t have them. Single file components solve it all for me.

This feels like Vue is trying to become React, but ... I’m using Vue because I think it’s much more valuable than React. I also get that it’s said that none of the things I like will change and I could just keep using it as is, but when was that ever really true - the new features always take more of the mindshare than keeping existing users.

This might be the curse of us all: the people who build successful things tend to be the most extreme users of their own thing. It helps you by making you have high standards at the beginning, but later on, if you keep serving yourself, you’ll end up with something like Angular where it eclipses past the sweet spot where most of the users are and goes for ever more advanced things with not so much of an audience, just because you’ve been solving your own problem and that has even a good metric thus far.

Re:Vue.js v3 released (pre alpha) by alex_marchant on Friday October 04, 2019 @03:22PM (#21161002)
I hear you, we use this at work and this rings true to our experience as well. One thing though is recently we've started experimenting with typescript? Have you used that? I find that you have to jump through hoops to get typescript and Vue to work together. Looking forward to a form of Vue with better support there.
Re:Vue.js v3 released (pre alpha) by rolleiflex on Friday October 04, 2019 @03:36PM (#21161129)
Yes, I'm using Typescript with Vue. As long as you accept that Typescript is an addition to JS, that is, most of the things you work on will not have Typescript on their own, you can 'gate' it to your parts (i.e. enforce and assert types on your boundaries) and have no problems with it.

It's only when people think of Typescript as a new language where everything must have types things start to go wrong — Javascript won't ever be that. There'll always be a tiny but super useful library from 2004 which has its jQuery dependency removed just 6 months ago, and won't ever get Typescript support, and you have to use it — and if you're a purist that's going to spoil your lunch.

Don't be a purist — a project using Typescript at 50% of its codebase is vastly better than one that uses it at 0%, even if all its asserts are :any's.

Re:Vue.js v3 released (pre alpha) by alex_marchant on Friday October 04, 2019 @03:58PM (#21161335)
Vue is the backbone of our apps, not a small jquery library, good prop types and such is key to day to day work IMO.
Re:Vue.js v3 released (pre alpha) by furicane on Friday October 04, 2019 @03:39PM (#21161156)
I've been using vue, nuxt and typescript without any issues so far (6 months with TS though). It's not vue that's at fault for troubles with TS.
Re:Vue.js v3 released (pre alpha) by jacurtis on Friday October 04, 2019 @04:15PM (#21161492)
I couldn't agree more! I too use Vue.js 2 as what i would call an advanced user. I use it daily as my primary front-end framework.

I currently love Vue.js as it is. I have followed along with the fixes, improvements, and changes, and continue to think the same thing... "Am i just lucky that I never run into ANY of these problems? Am I using the framework wrong because I am NOT running into these issues?"

Like you, i mainly use single-file components. But to me, that is the best way to use Vue in an advanced project. So I have been wondering the same thing during this whole launch, "does anyone actually care about these changes or are we starting to make this beautiful framework into something that is unnecessarily complicated?"

Re:Vue.js v3 released (pre alpha) by mahesh_rm on Saturday October 05, 2019 @08:34AM (#21165151)
I can't understand how this cycle of unnecessary complexity addition repeats over and over again. Indeed I find Vue 2 perfect as it is, and cannot see the motivation beyond these changes.
Re:Vue.js v3 released (pre alpha) by ratww on Friday October 04, 2019 @04:31PM (#21161637)
What changes are you talking about? Are you aware that Single File Components won't be removed? Asking because a lot of people on Twitter and Reddit seem to be under this impression that it's going away...

If you're talking about changing from the current v2 object syntax to v3 composition api might be hard indeed, then I agree with you... but I'm hoping we'll get some compatibility layer soon enough.

EDIT: According to Evan we'll get a "compat build" in the RC phase [1]

[1] https://medium.com/the-vue-point/plans-for-the-next-iteratio...

Re:Vue.js v3 released (pre alpha) by ehutch79 on Friday October 04, 2019 @05:24PM (#21162041)
v2 object syntax is supoosed to be staying
Re:Vue.js v3 released (pre alpha) by ru999gol on Friday October 04, 2019 @03:56PM (#21161326)
I'm curious, I'm maintaining a similarly sized React app. What are the benefits of Vue (2) over React?
Re:Vue.js v3 released (pre alpha) by earthboundkid on Friday October 04, 2019 @04:34PM (#21161657)
It has a sane model for dealing with reactivity and doesn't insist on always using immediate mode. React runs into all these weird issues like stale closures because everything is always rendered every time. Vue just makes it all much simpler to grok because the setup function is only run once.
Re:Vue.js v3 released (pre alpha) by earthboundkid on Friday October 04, 2019 @04:32PM (#21161638)
I disagree. Making renderless components in Vue 2 is sort of a pain. It can be done, but it doesn't feel natural. I'll be happy to have it simplified. And if you don't want to use it, the options API will still be around.