I
I
ixon2019-09-09 17:43:47
Vue.js
ixon, 2019-09-09 17:43:47

What is vue.js, how mainstream is it, and how effective is it?

I've been hearing a lot about Vue.js over the past few years . What is it and why was it developed?
I didn’t particularly go into its essence, as far as I understand, this is a kind of framework that simplifies working with the DOM tree by offering your own code instead of some typical JS code, something like jquery, but some very specific and looped directly on interface.
There was an impression that this is some kind of hipster ineffective product. Isn't that right? Is it used in any large projects? How much does it simplify development? How fast does it work?
The developers suggest using it in tandem with Node.JS, but what about more mainstream PHP web development?
Is it worth using it, if so, in what typical tasks can you unlock as much of its potential as possible?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Anton Anton, 2019-09-09
@ixon

What is it
Vue (pronounced /vjuː/, similar to view) is...
Compared to purejs and jquery - very strong, compared to others (react / angular) less advantage, but (IMHO) it's still there
Overhead is hardly noticeable
I use it in conjunction with laravel, for example to create interrelated form elements. It is quite convenient, but I really want to do everything spa (because it is very convenient to do everything in one place). And here it already turns out the requirement of server side rendering for search bots, which is impossible without nodejs.
Costs. Any task where the displayed data depends on user input. Even the shopping cart of an online store with buttons for changing the quantity and deleting - even if each of them sends data to the server via ajax. Forms from several stages, all sorts of calculators and so on and so forth.

A
Alex Glebov, 2019-09-10
@SkiperX

This jquery was needed to work cross-browser with dom. Vue is a full-fledged freemvork. Needed for a clear structure and architecture of the application. Solves basic tasks, such as interface synchronization with data, rooting. It introduces modularity, which makes it easy to reuse and encapsulate data, styles, markup.
The node is needed for vue as a development environment and for ssr, but this front-enders will get tired. On what to do backend api in general, it doesn’t matter, because this is a separate application. Ssr on php cannot be done in the same way as yii2 can be run on js.
Vue has been around since 2014 and is rapidly gaining popularity. Gitlab and aliexpress work on it.
Suitable for any tasks where there is Ajax and you need to dynamically change the interface. Starting from the basket, filters and to any spa.
There is a comparison with react and angular, but this is purely for frontends.
https://www.youtube.com/watch?v=FFZfmIQ9I44
https://www.youtube.com/watch?v=kuHSJNxNFQw
Well, for the first application, vue is best suited, there’s nothing to even think about.

7
777Polar_Fox777, 2019-09-11
@777Polar_Fox777

Vue is a not-so-high-quality React clone created by a Chinese)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question