Live data from Hacker News

Plans for the Next Iteration of Vue.js

medium.com

11–20 of 152 posts

Re: Plans for the Next Iteration of Vue.js

#11
Nice performance improvements:

> The constant baseline size for the new runtime is > Faster: on preliminary benchmarks, we are seeing up to 100% performance improvement across the board, including raw Virtual DOM mounting & patching (we learned quite a few tricks from Inferno, the fastest Virtual DOM implementation out there), component instance initialization and data observation. 3.0 will shave off half the time spent in JavaScript when your app boots up.

Re: Plans for the Next Iteration of Vue.js

#12
post #8

Written in TypeScript and with TS type support in mind! That was the thing missing for me to look at Vue, looking forward to the release.

Yeah this is great. Last time I tried, Vue itself wasn't too bad to get going with TS. The real issue for us was Vuex. The official examples and the Typescript examples we found looked completely different. It wasn't easy to get started.

We actually moved to React + Redux since it was early enough in the project to make that decision. Typescript support is much better there. If typescript support was better in Vue/Vuex, I doubt we'd have made that decision.

Re: Plans for the Next Iteration of Vue.js

#13
post #8

Written in TypeScript and with TS type support in mind! That was the thing missing for me to look at Vue, looking forward to the release.

I never had a time to take a look at type script.

What is the benefit of adding static typing to an inherently dynamically typed language?

As I understand, they don't get any performance improvement from that, as the browser still runs it in JS vm?

Re: Plans for the Next Iteration of Vue.js

#14
post #12
post #8

Written in TypeScript and with TS type support in mind! That was the thing missing for me to look at Vue, looking forward to the release.

Yeah this is great. Last time I tried, Vue itself wasn't too bad to get going with TS. The real issue for us was Vuex. The official examples and the Typescript examples we found looked completely different. It wasn't easy to get started. We actually moved to React + Redux since it was early enough in the project to make that decision. Typescript support is much better there. If typescript support was better in Vue/Vu…

> Vue itself wasn't too bad to get going with TS

Last time I tried, there wasn't any support for type check across component boundaries (props, events). Did something change?

A deal-breaker for me. I mostly know types from within the component; if you keep them small enough it's not much of an issue to just look up/down to check for a name, for example. But cross-component communication is where I need TS the most. Hopefully 3.0 addresses that (didn't read the whole article thoroughly, maybe it's mentioned).

Re: Plans for the Next Iteration of Vue.js

#15
I'd been out of the loop of frontend Web stuff for several years but I tried Vue.js because I read here and elsewhere that Angular was a mess. I just couldn't stand the weird hybrid html/css/js editing. At no point did I feel I had the slightest clue what was going on and it felt like I wasn't supposed to ask. React felt much more natural to me. Is there any way to do stuff differently with Vue or should I just stick with React?

Re: Plans for the Next Iteration of Vue.js

#16
post #3

One thing I was finding weird about all those template compiling frameworks is the use of javascript for parsing the page/template instead of the lightning fast browser's native parser (DOMParser) Can somebody shed some light on that design decision?

IMO, with Vue if your template needs to be parsed in-browser, you're doing something wrong (Vue has "full" and "runtime-only" builds; I don't think that you should use the full build in production). The template should be parsed+compiled to a render() function during the build process, and the browser should only ever see the render() function, not the template (except through a source-map).

Re: Plans for the Next Iteration of Vue.js

#17

I'd been out of the loop of frontend Web stuff for several years but I tried Vue.js because I read here and elsewhere that Angular was a mess. I just couldn't stand the weird hybrid html/css/js editing. At no point did I feel I had the slightest clue what was going on and it felt like I wasn't supposed to ask. React felt much more natural to me. Is there any way to do stuff differently with Vue or should I just stick…

>At no point did I feel I had the slightest clue what was going on and it felt like I wasn't supposed to ask

what exactly do you mean? you didn't understand the templating language? you didn't understand the data model? you didn't understand webpack? what does "i didn't have the slightest clue what was going on" even mean? do you know what gcc does when it compiles your C code to assembly? is that the resolution at which you'd like to know "what's happening" ???

Re: Plans for the Next Iteration of Vue.js

#18
The ability to split Vue components into multiple (html, ts, scss) files in a single directory would be nice. I dislike the single file approach and it makes things like having nice syntax highlighting and completion more complex than it should be.

Re: Plans for the Next Iteration of Vue.js

#19
post #8

Written in TypeScript and with TS type support in mind! That was the thing missing for me to look at Vue, looking forward to the release.

Will it still be possible to run in an ES2015-compatible browser without transpiling? That was one of the killer features of Vue for me.

Re: Plans for the Next Iteration of Vue.js

#20
post #13
post #8

Written in TypeScript and with TS type support in mind! That was the thing missing for me to look at Vue, looking forward to the release.

I never had a time to take a look at type script. What is the benefit of adding static typing to an inherently dynamically typed language? As I understand, they don't get any performance improvement from that, as the browser still runs it in JS vm?

Types let you shift more of the testing load to the compiler instead of run time. Also, auto complete (not just string based) works much better because it's easier to reason via information that is exclusively in the realm of compile time (types).
Post reply on HN