Live data from Hacker News

Vue.js 2.1 Released

github.com

11–20 of 126 posts

Re: Vue.js 2.1 Released

#12
post #2

Is this looking a lot like Angular 1.x to anyone else? I've heard it's actually more similar to React but I'm not seeing it... ?

here's an link[0] to a comparison with react, angular 1 and others. [0] - https://vuejs.org/v2/guide/comparison.html

Hm, doesn't seem that much of a win for React users.

The performance is compareable, but they went for templates instead of the "it's just JS"-philosophy of React. Reminds me of "the fear of turing complete templates"[0]

Also, they mention their bindings are similar to MobX. I had the feeling MobX was a step back in the React eco-system, if I think about what Facebook wanted to achieve with Flux.

But yes, overall it seems like a much simpler approach than React or Angular, not to mention Angluar 2, lol. But it seems to come at the cost of the points I mentioned, which were really a pain back in the days and got solved with Flux and JSX.

It also doesn't seem to solve some problems that React didn't solve, like realtime asynchronous data or fractal state.

[0] http://lhorie.github.io/mithril-blog/getting-over-a-fear-of-...

Re: Vue.js 2.1 Released

#13
post #3

So far my Vue.js experience has been great. Even though I don't particularly enjoy front-end development and the tools and techniques I'm supposed to use for them, Vue.js has been a breath of fresh air between my frustrations with HTML, Javascript, npm, CSS, HTTP and all the other things that are needed to stitch everything together. It really is a great framework. The one thing that does still bug me these days is t…

are there any tutorials that would help a beginner start on that front?

I just went through the whole 'getting started' guide [1], reading everything, looking at the examples, and playing around in my own npm playground to see if I really got it.

I still consider myself a novice, I've only spent about 6 hours playing with it, but I'm already able to write my own components, communicate between them using events, set up data model for my app, binding the data model to bootstrap components in my templates, etc. Not bad for someone completely new to web development. Which says a lot more about Vue.js than about my own capabilities ;-)

One tip I can give you is to take a very good look at the Vue 1 to Vue 2 changes [2], and all the things that have been deprecated in Vue 2 (quite a lot). The big mistake I made was to mess around with examples written for Vue 1 and thinking there was some problem with the framework itself, while all of it was because I was using deprecated features (e.g. the event system has changed significantly).

[1] https://vuejs.org/v2/guide/

[2] https://github.com/vuejs/vue/issues/2873

Re: Vue.js 2.1 Released

#14
post #3

So far my Vue.js experience has been great. Even though I don't particularly enjoy front-end development and the tools and techniques I'm supposed to use for them, Vue.js has been a breath of fresh air between my frustrations with HTML, Javascript, npm, CSS, HTTP and all the other things that are needed to stitch everything together. It really is a great framework. The one thing that does still bug me these days is t…

Have you checked the Awesome Vue [0] list of components? There are many there that support v2 [0] https://github.com/vuejs/awesome-vue

Yes, I've looked at that list, but some of the components I'd like to use are still not compatible (Keen UI, for instance).

Re: Vue.js 2.1 Released

#15
post #2

Is this looking a lot like Angular 1.x to anyone else? I've heard it's actually more similar to React but I'm not seeing it... ?

It's like Angular in that they use a similar templating language, and it's like React in that they're using a component-based declarative DOM API.

Re: Vue.js 2.1 Released

#16
I've been waiting for scoped slots for so long. I've implemented several workarounds since I started using Vue a year ago. Creating a directive to pre-compile a slot template in the child scope in Vue 1, and then once Vue 2 rolled around, making lots of functional components and passing them around. So glad they finally added this.

Re: Vue.js 2.1 Released

#17
post #2

Is this looking a lot like Angular 1.x to anyone else? I've heard it's actually more similar to React but I'm not seeing it... ?

You can use it for a page that isn't a SPA for example.

Re: Vue.js 2.1 Released

#18
In case someone user Meteor - Vue plays very nice with Meteor and there exists a great integration package [1], which means if you're familiar with Meteor you can write full stack applications with it very easily and quickly with it. The package supports hot module replacement out-of-the-box. It's also dead simple to start using it, if you already have Meteor installed it's a matter of running "npm install" and "meteor".

[1] https://github.com/Akryum/meteor-vue-component

Re: Vue.js 2.1 Released

#19
post #12

Earlier quoted context omitted.

here's an link[0] to a comparison with react, angular 1 and others. [0] - https://vuejs.org/v2/guide/comparison.html

Hm, doesn't seem that much of a win for React users. The performance is compareable, but they went for templates instead of the "it's just JS"-philosophy of React. Reminds me of "the fear of turing complete templates"[0] Also, they mention their bindings are similar to MobX. I had the feeling MobX was a step back in the React eco-system, if I think about what Facebook wanted to achieve with Flux. But yes, overall it…

You can use JSX to write your render functions in Vue [0]. It's opt-in as the Vue community views them as overkill in the usual case.

Personally, I appreciate having the intuitive approach for templating as the default for people who don't share my encyclopedic knowledge of web development. They can more easily follow along and contribute.

[0] https://vuejs.org/v2/guide/render-function#JSX

Re: Vue.js 2.1 Released

#20
post #12

Earlier quoted context omitted.

Hm, doesn't seem that much of a win for React users. The performance is compareable, but they went for templates instead of the "it's just JS"-philosophy of React. Reminds me of "the fear of turing complete templates"[0] Also, they mention their bindings are similar to MobX. I had the feeling MobX was a step back in the React eco-system, if I think about what Facebook wanted to achieve with Flux. But yes, overall it…

You can use JSX to write your render functions in Vue [0]. It's opt-in as the Vue community views them as overkill in the usual case. Personally, I appreciate having the intuitive approach for templating as the default for people who don't share my encyclopedic knowledge of web development. They can more easily follow along and contribute. [0] https://vuejs.org/v2/guide/render-function#JSX

I see :)

> I appreciate having the intuitive approach for templating as the default for people who don't share my encyclopedic knowledge of web development

I always saw it the other way around, haha :) Why should I learn some template language, when JS can do the job and I already know it.

Post reply on HN