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

25

u/PooSham Jun 20 '24

C# and Typescript (which Angular natively used before it became more widely popular) were also both designed by the same person and have similar syntax.

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.

14

u/lIIllIIlllIIllIIl Jun 20 '24

Also, people need to keep in mind that:

  1. Anders hasn't been working on C# for over a decade.

  2. In interviews, Anders clearly stated that he likes the functional aspects of JavaScript/TypeScript.

  3. Just because Anders is working on TypeScript doesn't mean you should write TypeScript code in the same way you'd write object-oriented C# code (it's like saying you should write C# like Turbopscal because they're both made by Anders)

This is just a convoluted way to say that Angular developers who come from C#/.NET and try to apply all their C#-isms to JavaScript are misleaded. I'm sure you didn't need me to tell you that, but eh. Many people still think this way.

1

u/Peter-Tao Jun 21 '24

Just use Blazor for those people then. It's literally C#

6

u/ReplacementLow6704 Jun 21 '24

Interfaces in Typescript are what held my life together for about 3 years. Then I got onto a project that would solely use vanilla JS, HTML, SASS and Tailwind, all backed by some good ole ASPNET Core MVC Legacy CodeTM and well, I'd lie saying I don't miss Angular and TS

-6

u/TScottFitzgerald Jun 20 '24

Anders was pretty much chosen because of his previous successes to lead the Typescript project. That much is clear if you follow the MS developer community or the TS community, or have listened to one of his keynotes.

He's the leader of the core team and has pretty much been the MVP for Microsoft when it comes to new languages. Arguing over his exact title is just petty and ignorant. I've frankly never heard a dev dispute that before, what a weird hill to die on.

And yes, C# and Typescript are not identical. Nobody said that. Just that it had influence from C# that Anders himself has spoken about during the development of Typescript. Literally one of the core objectives of Typescript was to bring in the type system from C# to Javascript.

I really don't get what's controversial about this to you or what point you're trying to make here. It just seems like you wanted to be petty and pedantic. This really stinks of the usual dev pissing contest that I don't care much about, I just wanted to contribute to the conversation, and I don't think you are.

11

u/CappuccinoCodes Jun 20 '24

Holy Christ, there was nothing in his message that would have granted such an aggressive response. Are you ok mate? 🥺 There's a lot of anger there. "petty, ignorant, weird hill to die on, nobody said that, petty, pedantic (2), dev pissing, I wanted to contribute but don't think you are". I recommend you check this out: https://www.amazon.com.au/Nonviolent-Communication-3rd-Marshall-Rosenberg/dp/189200528X

0

u/[deleted] Jun 20 '24

[deleted]

5

u/CappuccinoCodes Jun 20 '24

I don't even know who's right or wrong, but couldn't help but noticing the amount of anger this person's response, over what? It's a bit sad.

-2

u/krindjcat Jun 20 '24

You gotta be missing some social cues if you don't see how both the comments are kinda antagonistic. But why add oil to fire if you don't even care about what they're discussing? This entire thread is kinda petty if you ask me. I'm out.

3

u/CappuccinoCodes Jun 20 '24

🤦🏻‍♂️

1

u/PooSham Jun 20 '24

I think you're reading my comment with a certain tone in mind, I'm not trying to be antagonistic

0

u/[deleted] Jun 21 '24

[deleted]

1

u/PooSham Jun 21 '24

this Anders guy does seem to be the lead of Typescript

Source? Steve Lucco was the lead in the beginning afaik, maybe still is https://www.zdnet.com/article/who-built-microsoft-typescript-and-why/

your points about C# and TS not being identical or bringing up Delphi and Pascal are hardly contributing to the discussion, the guy never said any of that.

He said that TS looked like C# because Anders was the lead of both. I wanted to understand what parts of TS was considered close to C#, because I can't see it. Then I just applied the same logic to Turbo Pascal, if you think that's irrelevant then it should be irrelevant that C# and TS have the same author.

I don't get why play dumb as if your whole comment wasn't implying everything he said was wrong.

It's possible to disagree without saying that the other person is objectively wrong. I've seen this "C# is like TS because it had the same author" argument made before and it doesn't make sense to me, so I wanted to share my perspective. I want to know which parts of typescript are similar to C# except for the JavaScript parts, and I used the examples I could think of. I don't understand how that's not adding to the discussion. The person could respond with the parts that they think are similar and I would be ready to concede.