Commentary: Sarah Drasner is an knowledgeable in Vue.js, and walks via 5 causes to like the net framework.
In case you’re a developer on the lookout for a progressive net framework to construct consumer interfaces and single-page functions, you’ve got most likely heard of Vue.js. In case you’ve used Vue, odds are fairly good that you simply like it, as Stack Overflow survey information suggests. Vue is, in any case, tiny in measurement (18 KB totally zipped), gives digital DOM, comes with nice documentation and extra. Want extra data that can assist you determine whether or not Vue is value your time? Properly, you possibly can ask Sarah Drasner, a part of the Vue core workforce, as Khaled Al-Ansari did.
This was her response.
Making arduous issues straightforward
There are all kinds of on-line sources that tout the virtues of Vue (like this one), and loads of surveys (like this one) suggesting it is one of many hottest programming frameworks round. However Drasner, a former Netlify and Microsoft govt and member of the Vue core workforce, with a really nerdy bent (in the most effective sense of “nerd”), is the right information to why Vue is vital.
SEE: One of the best programming languages to learn–and the worst (TechRepublic Premium)
Responding to Al-Ansari, Drasner pointed to a number of advantages that Vue delivers:
Extraordinarily declarative; your code will be extremely organized and legible due to properly performed abstractions. Associated to this, in a weblog submit, Drasner touted the virtues of computed properties in Vue: “They’re calculations that shall be cached based mostly on their dependencies and can solely replace when wanted. They’re extraordinarily performant when used nicely and terribly helpful. There are various giant libraries that deal with this type of logic that you would be able to now get rid of with just a few strains of code.”
Abstractions break down when you possibly can’t get beneath the hood. Vue supplies nice APIs so that you could do exactly this, comparable to customized directives, watchers and the like. The brand new Composition API permits for just a few methods to construction reusable items of a bigger codebase.
Issues within the ecosystem like Vuex, Nuxt, Vue Router and Gridsome supply extraordinarily good instruments with nice DX which are a pleasure to work with.
Single File Parts will be great to work with as a result of you possibly can encapsulate every little thing you want proper there with out loads of leaping round to many various recordsdata.
SEE: Developer code critiques: 4 errors to keep away from (free PDF) (TechRepublic)
As widespread as React has been, Vue arguably improves upon React by combining the most effective of each AngularJS and React: “Options like component-based method, the one-way information move for part hierarchy, digital rendering and state administration of app are options which are borrowed from ReactJS. The templates, syntax and simple consumer interface have been borrowed from AngularJS.” The result’s a extremely performant, easy-to-learn, highly effective framework for constructing functions. You, like Drasner, simply would possibly like it, too.
Disclosure: I work for AWS however the views expressed herein are mine.