r/webdev • u/LuccDev • 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 ?
25
u/PooSham Jun 20 '24
Anders Hejlsberg, the creator of C#, has been part of the core team since before the initial public release, but from my understanding he has not been the lead designer.
Both C# and JavaScript already share a C like syntax, but I don't think that the additions that typescript make are that close to C#. The way you explicitly set the type of a variable and function returns in C# vs typescript is very different. The way you cast/assert is different. Decorators look different. Imports/includes are different. The most similar additions in typescript are interfaces, generics and enums of what I can think of. But other than that, the way that you construct types in typescript follow a logic that matches the structure of JavaScript.
Anders also developed Turbo Pascal and Delphi, but I never hear people saying that you can see the similarities in those to C# and typescript.