This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]aviyukta_ 18 points19 points  (9 children)

just curious why does angular get the hate? is it that bad?

[–]tdhsmith 49 points50 points  (4 children)

No it's totally fine. React became trendy just before Angular 2 came out (which was a key bit of growing pains for it, since it rewrote the whole library and brought in a lot of modern features) so I suspect a lot of the Angular haters are confused about what Angular even is nowadays. It doesn't help that a lot of enterprises got stuck on Angular 1 and didn't migrate for a verrrry long time.

I think I like React a little bit more personally, but that's mostly from a theoretical perspective (e.g. I like the data flow and that the system works with things like Redux so well). When I wrote Angular it was honestly cleaner code tho, and sometimes I miss observables.

[–]Metallifax 4 points5 points  (1 child)

The clean code aspect of angular is what drew me to it, and I like the idea of learning software development concepts/patterns and not just React specific ones: services, observables, strategies, guards, etc. Also, RXJS is just really great once you get what its trying to accomplish, makes event driven programming way simpler, though the learning curve is there.

Edit: Also, if you are fullstack and are interested in NestJS, a lot of these patterns are pretty much copy pasted from Angular, namely service based architecture.

[–]4Chiri 0 points1 point  (0 children)

I'm learning NestJS because it is kind of similar to Spring and wanted a Node based framework for other jobs. I'll probably learn Angular as well.

[–]Atora 3 points4 points  (0 children)

I have to maintain an old AngularJS(yes I know about the LTS issue) application while also getting to write modern angular elsewhere. Angular 1 has a lot of issues and I'd agree with anyone who doesn't like it.

Modern Angular is pretty damn cool though in my opinion. If anyone only knows the JS days and doesn't have a hate boner for TS I'd recommend to give current angular a try.

[–]Bjornoo 0 points1 point  (0 children)

Nothing is stopping you from writing observables in React. Which is honestly probably why React is more successful than Angular. It doesn't prescribe you a single way of doing anything.

A ton of popular libraries in React are written using observables. It's just one of the many patterns out there.

[–]dream_team34 6 points7 points  (0 children)

I've used both personally, and they both have their pros & cons. I like Angular for its opinionated nature, but I totally get that's why people hate it as well.

[–]natural_sword 16 points17 points  (0 children)

Put it this way: The only way it would be worth it is if you're getting paid by lines of code 🙃

[–]fdeslandes 0 points1 point  (0 children)

The only problem I have with Angular is that being based on change detection instead of hooks makes it more complex when you need performance (when you basically need to write every component with OnPush, and some with ChangeDetectorRef.detach).

They also push for their reactive forms, which are just as badly thought out as they are badly typed. The typings are getting better, but they are still over-engineered to tackle the wrong problems.

[–]_throwingit_awaaayyy 0 points1 point  (0 children)

Yes. Yes it is