Live data from Hacker News

Vue.js is Wikimedia Foundation's future JavaScript framework

lists.wikimedia.org

101–110 of 204 posts

Re: Vue.js is Wikimedia Foundation's future JavaScript framework

#101
post #94

I really enjoyed working with Vue 2 until I started using TypeScript. Vuex, the goto state manager just wasn'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'm sure in Vue 3 this is much better now, but while evaluating to migrate to v3 this wasn't the case. I became interested in React, bec…

Vue 3 has composition api which is more typeo friendly.

And Pinia is a vuex alternative which has good typescript support. Vuex 5 will have similar api as pinia

Re: Vue.js is Wikimedia Foundation's future JavaScript framework

#102
Am I the only one who still has a preference for vanilla js?

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.

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/vue/whatever?

Re: Vue.js is Wikimedia Foundation's future JavaScript framework

#103
post #102

Am I the only one who still has a preference for vanilla js? 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. 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/vue/whatever?

You don't if your User Interfaces are basic. But for web applications theses frameworks with the ability to quickly define your own web components are incredibly useful. It can still be frustrating sometimes, but when the app gets more complex, doing this without a web framework is probably insanity.

BTW, Vue 3.0 uses Typescript, but you can still programm with plain Javascript. That it what I am doing (I may be part of a minority).

Re: Vue.js is Wikimedia Foundation's future JavaScript framework

#104
post #102

Am I the only one who still has a preference for vanilla js? 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. 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/vue/whatever?

Have you tried Vue? It’s very different than React because you can just augment your HTML with what you need, it’s not all or nothing. What’s complex and usually overkill for small projects is the "modern" build tool chain, but you can ignore that and just add the and be done with it (same with React BTW). You can get familiar with AlpineJS which is kind of a minimalist Vue.

Re: Vue.js is Wikimedia Foundation's future JavaScript framework

#105
post #51

I feel like I'm in an alien world when it comes to Vue - it has this weird pattern of making strings do loads of heavy lifting. The Github Commits[1] example on their documentation has a load of stuff that just doesn't sit right with me. Things like v-for="record in commits" to loop over something is insane to me - this isn't code, this is a string inside a html attribute! How can you get any sort of good type analys…

> My IDE can't highlight that this is wrong because it's not code and is just a string.

WebStorm and its bigger brother IntelliJ IDEA can handle this.

Re: Vue.js is Wikimedia Foundation's future JavaScript framework

#106
post #102

Am I the only one who still has a preference for vanilla js? 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. 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/vue/whatever?

Have you tried Vue? It’s very different than React because you can just augment your HTML with what you need, it’s not all or nothing. What’s complex and usually overkill for small projects is the "modern" build tool chain, but you can ignore that and just add the and be done with it (same with React BTW). You can get familiar with AlpineJS which is kind of a minimalist Vue.

That’s for the tips! I’ll take a look at alpineJS. I tried vue a long time ago but would definitely give it another look. My complaints really come from using react and I assumed vue had similar issues

Re: Vue.js is Wikimedia Foundation's future JavaScript framework

#107
post #103
post #102

Am I the only one who still has a preference for vanilla js? 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. 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/vue/whatever?

You don't if your User Interfaces are basic. But for web applications theses frameworks with the ability to quickly define your own web components are incredibly useful. It can still be frustrating sometimes, but when the app gets more complex, doing this without a web framework is probably insanity. BTW, Vue 3.0 uses Typescript, but you can still programm with plain Javascript. That it what I am doing (I may be part…

Yeah I never really make crazy interfaces so maybe I’m not the target audience for these frameworks

Re: Vue.js is Wikimedia Foundation's future JavaScript framework

#108

A solid choice and well reasoned. It was a joy to read all of the discussions. 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.) My only problem with Vue 2.x was the bad TS support, but I trust 3.x solves that.

"The freedom of React" is a hard statement for me to digest. I stopped using React specifically because it was so incredibly limiting. And my life has been a lot better without it.

Within its area, React is very unopinionated. Ask three different devs and you’ll come back with five answers.

Vue doesn’t have that. And yet it doesn’t lock you down the way Angular does.

Now, what that “area” is, remains up for discussion

Re: Vue.js is Wikimedia Foundation's future JavaScript framework

#109
post #102

Am I the only one who still has a preference for vanilla js? 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. 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/vue/whatever?

Working without a framework in a team, you can easily have a situation where each developer comes up with novel solutions to various basic and essentially common problems. I've seen it happen that each dev invents their own way of working, their own micro-framework, and the others are mostly unable to work productively in the others' particular styles.

This can of course be countered by pair work, extensive reviews, creating best practices, etc. However, there's a value in adopting something that already comes with those, instead of inventing them from scratch. The correct answer really depends on your situation and team size, I guess.

Re: Vue.js is Wikimedia Foundation's future JavaScript framework

#110

I'd clap harder if Vue weren'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 & 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. If only the Vue t…

All JS frameworks will share some features. What specifically about Vue do you think is unnecessary or shows that the Vue team doesn't understand?
Post reply on HN