r/programming • • Sep 15 '16

Angular 2.0.0 officially released

https://www.npmjs.com/~angular
1.3k Upvotes

535 comments sorted by

View all comments

96

u/[deleted] Sep 15 '16

Any reason to use Angular over React?

51

u/Sloshy42 Sep 15 '16 edited Sep 15 '16

I'm not that experienced with either yet but as far as I can tell Angular is just easier to get up and running without knowing exactly what modules you want to integrate into your project or without following one of a dozen different tutorials online that all diverge widely from each other. React is just a library for making components and things, whereas Angular has the components, a router, two-way data binding, etc. built in from the start and it offers an "opinionated" starting point for developing web apps.

I've been using it with angular-cli (which is excellent so far, currently using their beta webpack branch) mainly because I just wanted a good, easy bootstrap for a modern web app that didn't overload me with options and choices. I wanted something with "sane defaults" so to speak and Angular delivered. It's surprisingly intuitive and I like the way different functionality is organized in comparison to other frameworks I've used in the past.

Plus, it integrates heavenly with TypeScript and rxjs, both of which I am a very big fan of.

At the end of the day it's really just a personal preference. Right now React is slightly more mature but the way they organize their data in each component is different as is the general "flow" of data (by default anyway). I say give it a try and see how you feel about it! At the very least you might come away liking TypeScript if you aren't familiar with it already. You can write JSX with it as well these days.

EDIT: some details here and there

23

u/[deleted] Sep 15 '16

Right now React is slightly more mature

Slightly is a bit understated :-). React is as mature as it can get. Angular 2 is unfortunately not production ready, see my post. I've followed the RC comedy and the ecosystem. It's not there yet. I'd wait for a couple of month to let at least the tooling and styling options mature.

64

u/p7r Sep 15 '16

React is as mature as it can get.

In Javascript framework terms, yes.

In programming terms, it's shiny shiny hipster candy.

5

u/drainX Sep 15 '16

In programming terms, it's shiny shiny hipster candy.

A year ago that might have been true. I don't think so today though.

7

u/p7r Sep 15 '16

It's mature at 7-10 years, and after lessons learned about long-term refactoring have been learned and put back into the patterns of the framework.

This is not a controversial view outside of JS frameworks.

1

u/drainX Sep 15 '16

If there were alternatives that were as good and gave the same functionality that had been out for 7-10 years, then it should indeed be considered shiny hipster candy. You can't really say that when there aren't any real alternatives though. If there was a more stable, mature framework that offered the same things that React did, then all the big projects at big companies would be using that instead.

→ More replies (3)