J
J
JunDevTest2018-08-09 12:16:52
JavaScript
JunDevTest, 2018-08-09 12:16:52

Should I use Angular2, vue.js to simplify development if I don't know them, or should I stick with JQuery/Vanilla in my case?

Hello.
I need to make a mini-chat template that uses sockets and it is important that the messages appear smoothly and with minimal delay. I heard that Vue.js makes it easy to change elements on the fly and Angular2 has a convenient template engine, will this help me in solving the issue?
I'm afraid that when using regular JQuery to add elements, they will "hang" and messages will arrive with a delay.

Answer the question

In order to leave comments, you need to log in

5 answer(s)
V
Vadim, 2018-08-09
Schepotiev @avengerweb

I recommend Vue.js, I wrote both in React.JS and Angular, it will be easiest for you with vue.js for you it will be more pleasant, as it looks like a new html on top, unlike react which offers JSX (Which also will have to be studied).
Angular is very cumbersome in my opinion. (and not very popular, since it’s gone, there are a lot of very large projects on it)
You won’t notice much difference in speed, it only depends on how you write it (you can search somewhere on Habré to compare the speeds of some left framework , vue.js, react and something like angular)
Yes, don’t listen to the fables about JWT, RxJS, you can substitute the token in any library for requests (which will be enough at the first stages), and RxJS in the reactive framework is a mess, in my opinion (although I saw 1 or 2 projects where it was used, but this a drop in the ocean)
For Vue.JS, it’s worth noting immediately to take vue-router, vuex, axios, in particular for vuex, you can immediately find a couple of options for processing your sockets.

A
Alex, 2018-08-09
@streetflush

Here is especially for you
https://habr.com/post/419653/
Read the article on which there is trolling.
I hope the issue goes away.

S
sdgroup14, 2018-08-09
@sdgroup14

you will use sockets/fierbase anyway. If you don't know how to write in Vue|Angular, don't write. There is a great desire to learn - write .... Writing in Angular just because there is a convenient template is a lie. There are no convenient templates, but there are convenient tools! (in every reactive framework|library). In order to write, you not only need to get acquainted, but also get acquainted with a huge number of modules that you will connect. RxJS and JWT are at least .... the question is in timing and desire - my opinion.
And if you want to do it sensibly, delve into pure js, not jquery, and then it will be easy for you to switch to frames ... Also OOP, prototyping, encapsulation ....
And by the way, if you write for the first time on Vue|Angular without knowing at least what I described, then you will either write for a long time, or it will work even slower than on jquery

F
fastkulob, 2018-08-09
@fastkulob

No, well, you should understand that the proverb "live and learn" is better for programming. In the IT world, new technologies appear every day and we must be able to use them, especially if you really need it. Well, the answer to Angular's question is better and simpler and more convenient.

V
Vasily Mazhekin, 2018-08-10
@mazhekin

if the task is small, it’s better to stop at JQuery / Vanilla, messages will not hang anywhere and come in the same way via sockets, and displaying elements with jQuery is faster than any Vue / Angular / React, they are needed for a more understandable organized code, and nothing works faster there. I’ll tell you a terrible secret, people switch to React / Vue / Angular because of the fear of getting confused in their own code.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question