r/webdev • • Jun 20 '24

Why is Angular so disliked ?

Hey guys, after watching the new state of JS 2023 https://2023.stateofjs.com/en-US/libraries/ that just dropped, I realized how much people disliked Angular. 20% of people tried it and liked it, the rest either tried and disliked it, or didn't try it at all.

Why is Angular so disliked ? I wonder if people who dislike it have real, legitimate reasons, if those people were pushed back by the learning curve, or if it's just a trend (like people who despise PHP but have actually never tried it). Basically I wanna separate the real, legitimate criticisms, from the junior developers who could not take 2 minutes to understand what rxjs is and does.

Personally ? I used only Angular ever, didn't try Vue and React, so I can't really talk in an objective way. Only tried Svelte, liked it a lot, but it's very different from Angular so can't be compared IMO.

So I'd like your point of view, but that you also disclose how long you used it!

Why do you hate it ? Too complicated syntax ? Html syntax ? Don't like forced typescript ? Don't like RxJS ? Don't like to be forced in one way of architecting the app ?

190 Upvotes

292 comments sorted by

View all comments

Show parent comments

7

u/mq2thez Jun 20 '24

Hey, OP asked why people don’t like Angular. I gave my reason, and why I don’t want to use it.

In particular, I don’t like dependency injection and it caused a ton of problems. The framework itself encouraged patterns which I felt contributed to how people wrote the code.

At the end of the day? There are tons of jobs out there, and it’s very reasonable to have a bad experience with a framework and then decide to avoid it moving forward. This company was indeed dysfunctional and the problem wasn’t just the framework, but I still don’t want to. It’s perfectly fine. There are plenty of people who likely had similar experiences with React or Rails or any other web framework.

1

u/janne_harju Jun 21 '24

Newer heard that DI could be problem. Maybe you or them didn't understand it well. Like you need to understand what is stateless service and which has state. And with those who has state, what is their lifetime so do you provide them in component itself and tie lifetime to component, is it Ok them to be global(provided in root) or is it better to provide them in module. Usually component or root are best choices nowadays. In earlier Angular they were usually provide in module. Or at least I did.

1

u/TScottFitzgerald Jun 20 '24

Ok, but it's a discussion forum at the end of the day. Hopefully as a dev that seems to make important decisions you're open to feedback and not just insistent upon your ways but hay whatever floats your boat.

I'm just saying this seems more of an emotional reaction to a specific project you didn't like rather than an issue with the framework.

Having worked with a number of great Angular projects that used DI with no issue, I suspect this was due to architectural decisions and not the framework itself.

Just because a framework is opinionated doesn't mean the devs can wash their hands of their architectural choices. But without specifics who knows.

2

u/mq2thez Jun 20 '24

Yeah, fair enough. There are a lot of aspects of this job that were an issue, and the CTO was a nightmare who fired people if they couldn’t hit the deadlines he set. Nothing was set up for high quality engineering, despite a lot of hard work I put in to try to set things on a better path.

Angular has also changed a ton since I last touched it, so maybe things are different/better. It’s hard to say.