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!

35

u/hansolo669 Oct 19 '18

I would strongly advise against learning AngularJS ... The writing is on the wall, and I don't know of any teams willingly adopting it for new development.

Plus the bizzaro injection system and dependency framework is just a handicap when trying to pick up anything sane (saying that as someone that did a lot of AngularJS work).

12

u/Calsem Oct 19 '18

I totally agree with this. Learning AngularJS is a career dead end.

1

u/_xiphiaz Oct 31 '18

Unless you want a career in maintaining those websites that refused to upgrade shudders

3

u/nowtayneicangetinto Oct 19 '18

I agree with the fact it is on it's way out. Which makes it a less solid investment for the potential for future growth, but there are many companies that still use it (a ton of enterprise) and are hesitant to move on to newer frameworks.

1

u/[deleted] Oct 19 '18

Agreed, the best bits of AngularJS exist in Vue.

4

u/Wapen Oct 19 '18

Thanks for the comprehensive answer! I am sorted on a job right now but just wanting to add more strings to my bow so I very much appreciate this.

4

u/nowtayneicangetinto Oct 19 '18

Any time! Glad to help. What ever route you choose to take, I highly suggest finding the associated subreddit and browsing through the posts. There are usually a lot of great articles submitted that can help you out.

4

u/Wapen Oct 19 '18

Wow that was fast, by the time I edited my comment you had replied.

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..

5

u/E2Ehh Oct 19 '18

All of the above frameworks / libraries can be used in the setup you describe in one way or another.

For Angular, you'd probably want to investigate Angular Elements, which basically package up an Angular app into a "web-component". So include a script on your page, reference the new custom element in your template, and you're done.

https://angular.io/guide/elements

1

u/imhotap Oct 19 '18

React etc. are MVw frameworks for business forms and highly interactive web apps - the entire point is organizing your code around rendering HTML/DOM uniformly in response to user input and other asynchronous events. When you don't have much interactivity on your site eg. mere content and e-commerce sites (including text editors and simple forms) using frameworks is nuts, as HTML browsers are already highly specialized apps for this purpose. You also loose searchability/SEO, content syndication, content workflows such as for product catalogs, accessibility and everything else the Web stands for.

1

u/E2Ehh Oct 19 '18

You'd usually do something like this if you had a mostly static site (or an existing CMS / other server-rendered site) but needed to add a self-contained complicated widget to one page.

SEO is not an issue in situations like this (or if it is, it's entirely possible to server-render Angular / other isomorphic frameworks).

Not sure why you are suggesting accessibility is an issue - that's entirely down to how an application is developed...

0

u/imhotap Oct 19 '18

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

0

u/[deleted] Oct 19 '18

[deleted]

4

u/Mike_Enders Oct 19 '18

angular guy myself but this is utterly false. Sure since it was crafted in asia it has a lot of usership there but many other companies are picking it up
https://madewithvuejs.com/websites

Thats by no means complete

https://trends.builtwith.com/javascript/Vue

Sure React and even angular have far more but "precisely no one" and "only has audience in Asia" is totally and demonstrably false.

7

u/tweakdev Oct 19 '18

Agreed with your point, just wanted to point our that Vue was not crafted in Asia. It was created by Evan You during his time with Google and Meteor in the US.

In my experience in Denver right now, Vue is absolutely gaining traction with startups. Though React is still ahead by a good amount.

2

u/Mike_Enders Oct 19 '18

I don't think any open source project gets anywhere unless it us crafted by community support. I wasn't referring just to evan. The earliest community was Asian. The first time I saw it I passed because the docs were Chinese

1

u/tweakdev Oct 19 '18

This just isn't right either. You can checkout the days after launching Vue on Evan's blog. I think Laravel was the first established community to really take hold of Vue. Evan has said as much on a few podcasts, although I don't feel like doing the leg work to link them.

Vue became widely used in China for a number of reasons. Of course it still is. All I am trying to say is that it did not start there (not that that would be a mark against it), founder, initial releases, community, or otherwise.

1

u/Mike_Enders Oct 19 '18 edited Oct 19 '18

I know what I saw on github so I'll stand by it regardless of your objection. I probably should have specified that the docs I was referencing were not necessarily the official ones but third party projects and training (part of the community) A great deal of the community's work was in fact documented in chinese and some projects for chinese only (never said anywhere Evan did not have an english blog). I also said nothing about an established community taking on Vue but the community of Vue itself growing. You can stick your head in the sand if you wish but I see nothing wrong with a framework gaining a foothold anywhere on the planet so if you think I am putting a strike against it on that basis you are dead wrong.

I simply do not count the release date as the sole beginning of an open source project. We all know an open source project is still in its beginning phase until it has a community around it and its undeniable to me that solidified in the Asian community (and why shouldn't it? Some of the smartest people I have met) before it did in other countries. Thats reflected to this day.

0

u/[deleted] Oct 19 '18

[deleted]

1

u/Mike_Enders Oct 19 '18 edited Oct 19 '18

If you think all those sites are Asian then you are beyond delusional and anything will emphasize your point in your mind.

0

u/[deleted] Oct 20 '18

[deleted]

3

u/Mike_Enders Oct 20 '18

As long as they are not only asian your drivel has been proven false. Like I said "precisely no one" and "only has audience in Asia" is totally and demonstrably false. I've demonstrated it easily. Doesn't need for you to see or admit it. Everyone else not biased can see the evidence you are dead wrong and thats more than good enough.

→ More replies (4)

2

u/denialerror Oct 19 '18

Yes, the world comprises of Silicon Valley and Asia.

→ More replies (1)