This article was originally published on Codica Blog.
But what are the JS changes and trends in 2019? In this article, we provide you with the 4 hottest trends in web development that new year brings.
Vue.js is gaining more and more grounds every day. It is proved by the fact that GitLab and Alibaba have already implemented it in their work process.
Here is the proving of Vue popularity over time made by State of JS.
Vue.js is an excellent choice in case you admire creating easy-to-fix and lightweight applications. The learning curve is short making it easy to master Vue promptly and move on to web application creation.
In 2019, Vue developers are offered an improved performance with Vue 2.x, native TypeScript support, SVG animations, proxy support, stable API etc.
We believe Vue.js will continue growing and gaining popularity in the coming years. The scenario will modify radically in 3-4 years. At that time, Vue will beat the rivals, and developers will principally change the tool on behalf of Vue.js.
React has been leading among other frontend libraries for three years and the tendency does not seem to change. We don’t see anything that could reverse the situation in the coming years.
According to Stack Overflow 2019 Survey, React holds the first position (74.5%) of Most Loved technologies. As you can see, Vue.js is in hot pursuit with 73.6% and this number tends to grow.
If you’re wondering what tool to choose for your project in 2019, we recommend reading this article comparing Vue and React.
Up to date, we have observed many versions releases from Angular 1 to 7, that in a sense deters many companies and projects from adopting it.
Let’s get acquainted with new Angular 7 features:
Updated CLI prompts: using
ng add, you can choose routing and go with CSS, SCSS, LESS for styles creation.
Addition of ScrollingModule that allows implementing virtual scrolling. For example, when elements become visible or invisible, DOM adds or deletes them.
Addition of DragDropModule for drag&drop functionality: lists re-sorting, moving elements between the lists etc.
Updated dependencies: Angular now uses Typescript 3.1, RxJS и Node.js 10.
Here is the performance of Angular popularity since 2016.
Many think GraphQL will become an interchange for the REST APIs in 2019. What is it and why is it better?
GraphQL is a query language for APIs and a runtime for fulfilling those queries with your existing data. GraphQL provides a complete and understandable description of the data in your API, gives clients the power to ask for exactly what they need and nothing more, makes it easier to evolve APIs over time, and enables powerful developer tools.
Here are the three most important issues GraphQL solves:
The need to request data several times. GraphQL allows you to get all the necessary data via a single request to the server.
Client dependency on the server. Using GraphQL, the client communicates in a universal query language, which eliminates the need for the server to specify the structure or composition of the returned data rigidly.
Ineffective ways of development. In GraphQL, developers describe the data required for an interface using a declarative approach. Developers are focused on what they want to get, not on how to do it.
However, you should also take into consideration Vue.js which is developing steadily and rapidly. It has already got ahead of Angular, but this option has some features to be improved and updated. In our opinion, Vue needs several more years to come in top place.
Considering the connection of the server and frontend, we believe you should pay attention to GraphQL which is a promising replacement for REST APIs.