r/webdev • • Oct 18 '18

Angular 7.0.0 released

/r/Angular2/comments/9pbn4f/angular_700_released/
223 Upvotes

148 comments sorted by

View all comments

11

u/Wapen Oct 19 '18

I am wanting to fill out my skill set a bit more and tossing up between Vue, React and Angular. What would you guys recommend? Focus on one (which one would be best in your opinion) or gain a basic knowledge of all 3 and go from there?

13

u/nowtayneicangetinto Oct 19 '18 edited Oct 19 '18

Here's my bit of knowledge gained professionally to best help you out!

  • AngularJS

    • Excellent for learning a quick, stable, and widely used framework

    • It just makes sense. It's easy to learn and has a lot of baked-in features (directives) to help you get going.

    • Initially built for directives then retrofitted for components

    • Two way data-binding out of the box makes life easier as you learn.

  • Angular 2+

    • Steeper learning curve, but once learned is incredibly powerful.

    • Component based architecture

    • Also uses directives that help make DOM elements easier to create, manipulate, etc.

    • Direction of data is easier to manage (one way, two way, controller -> model, model -> controller)

    • Many companies that have antiquated AngularJS code bases are usually moving to this framework.

  • React

    • Light weight library that is fast and relatively easy to learn

    • Relies on solid knowledge of vanilla JS skills

    • Component based architecture, contains HTML and JS within a JS file.

    • Great for practicing JS and understanding the fundamentals

    • Many companies are using React from startups to large corporations.

    • Relies on state management, most prominently Redux, for larger applications

  • Vue

    • Think of it as the love child of React and AngularJS, has directives, lightweight and super fast.

    • Huge community and growing

    • Unique structure as it uses directives and components, built with both in mind.

    • Contains HTML, CSS, and JS in a .vue file

    • More and more companies are picking it up, but seems to be mainly startups.

    • Larger apps need state management like Redux or VueX

This is not a complete picture, just a few bullet points that come to mind. There are many differences between all of these Frameworks/libraries that I didn't even touch on. There are many purists out there that will make solid arguments for why you should use one over the other, but in reality, there is no "best choice". It comes down to the scope of your project and how you aim to accomplish it. Here's my final thought:

If you're new to JS go with AngularJS, it will build up a good foundation and make you viable for jobs.

If you're somewhat experienced with JS go with React, it will make your JS skills that much better and if you're really up for a challenge, learn and implement Redux.

If you're familiar with the core concepts of JS and modern frameworks, go with Angular 2+, it will force you to learn TypeScript and rxjs, as well as how to build a fully scalable powerful app.

If you're comfortable with JS and want to see how fast you can learn a new challenge, go with Vue.

I suggest Vue last because it is the least in-demand (at least from what I have seen) in terms of job listings. If you don't care about landing a job right away, go for any of these. They all present great challenges of their own and will make you feel accomplished no matter what. In the end, they will all make you fall in love with JS.

Best of luck to you, I hope this helped!

3

u/RedditorFor8Years Oct 19 '18

Hi, is it right to say that all the frameworks you've listed above are for SPA only and won't work for multi page applications like e-commerce or blogs etc ? I haven't worked on frameworks like this since angular 1.2. Just wondering if Vue can be used in a e-commerce website..

0

u/imhotap Oct 19 '18

Thst's right. React, Angular & co. are for web apps/SPAs not web sites.