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?

187

u/8483 Sep 15 '16

I started learning Angular 1, and then Angular 2.

As I went further, it got more "magic" for me, meaning there was a lot of code sugar that works behind the scene. I had to learn Angular specifically, not Javascript per se.

I decided to try out React, and my god has it made me a better programmer. Instead of learning very specific Angular syntax, I actually started to learn about programming patterns.

Injecting HTML into JS for React turned out MUCH better than the other way around for Angular.

The downside to React is the fact that there is no official way for handling data. Angular has this out of the box, whereas in React you'd have to do a ton of reading and trying things out. However, this is exactly why I chose React, as it forced me to learn more JS rather than more Angular.

I suggest you try it out and see what you like more.

0

u/[deleted] Sep 15 '16

[deleted]

44

u/8483 Sep 15 '16

Probably because React is a rendering library, whereas Angular is a application framework.

Yes, you are correct, they aren't very comparable. Again, I like the fact that I am learning more JS and patterns rather than more Angular. Now I am getting into Redux for React, after reading about Flux, Reflux, MobX, Relay... Exactly what you said about the flexibility.

It is indeed a matter of taste. I really liked the opinionated approach of Angular. However, the more Angular I learned, the more special syntax I encountered, which eventually turned me off.

Again, Angular is awesome for what it does. I just chose to focus more on learning Javascript and reduce the magic to a minimum.

0

u/Xevantus Sep 15 '16

Redux

I'm so sorry for you. Redux has to be the worst conceived idea I've ever had the displeasure of working with.

1

u/8483 Sep 15 '16

Why do you think that? What are you using?

→ More replies (2)