Hacker News new | ask | show | jobs
by EMM_386 1624 days ago
> I'm a big Angular fan, even if I tried React, I highly prefer Angular for being more strict, complete and imho more suited for very big projects.

I agree, I just moved us to Angular 13 and I love every second of it.

I've worked on React projects but will take Angular any day of the week.

3 comments

Having worked with both, react much much less, but more recently, I find react just simpler to get stuff done with. Angular has a pretty rigid structure that I felt required more files and code (even if you just use the ng CLI to code gen the initial component or service) to do the same thing.

Obviously the batteries included nature of Angular is nice. But otherwise I felt less burdened by the amount of code I need to write and read in react.

RxJS is nice though and testing via dependency injection as long as your app isnt a horrible mess and has good decoupling.

Imo react is simpler to get stuff done with up until a certain point. Every large react project I’ve contributed to, or adopted, had the same overhead you described of Angular. Further, each had built custom abstractions due to the nature of how integration works with react. Some apps were fine, some had 1000+ line state files, 1000+ lines of hooks management before a render, weird ways of using context or passing props.

Today we still prototype mostly with react. It’s easier to staff junior devs around and empowers them when it comes to trivial logic with cool UX.

Any large scale work, or prototypes going to prod, do so with Angular. Where we’re confident in the Sr level engineers writing that code.

I also just finished migrating from AngularJS to Angular13. I have to say, it was very straightforward and not especially difficult. And going from a custom webpack setup to the angular CLI is pretty amazing.
I'm enjoying Angular development too, although the Angular Material library is... not great. Lots of corner cases that just don't get enough attention.
We use PrimeNG and I would highly recommend it.

It's under MIT also which is a bonus depending on your use case.

https://www.primefaces.org/primeng/showcase/#/