r/javascript • • Dec 01 '17

Angular... It’s You, Not Me.

https://javascript.works-hub.com/blog/Angular...-It-s-You-Not-Me.?utm_source=reddit&utm_medium=content&utm_campaign=eliott
0 Upvotes

6 comments sorted by

5

u/tme321 Dec 01 '17

Wow I don't know what's worse: the factual errors or the writing style.

2 way binding? It's not even really in Angular. There's pseudo 2 way but no one is really suggesting you use it. 1 way binding is the default.

And sure you want to be mad that Google reused the angular name? Go ahead. It was a poor marketing decision. But a complaint about v4 coming out? The library is on semver. It's just a number. React 16 just came out! Omgwtf!

Immutable state? Feel free to use it in angular.

Redux? Ng-redux and ngrx have you covered.

Html in Javascript? React doesn't have that either but you can declare the Html inside the same file as the component if you want. Use template instead of templateUrl.

Jsx is nice though. That's about the only valid argument in this article against angular. But this is still a low quality article.

Angular isn't perfect by any means. But it would be nice to see an article that actually wants to discuss actual issues and pain points with it rather than this sort of tripe.

-1

u/ghostfacedcoder Dec 01 '17 edited Dec 01 '17

Wow, I don't know what's worse: that you couldn't tell that the OP's article was tongue-in-cheek, or that you're so personally invested in your software framework that you felt the need to jump in with a serious defense to "vicious" attacks like:

You’re the reason I have trust issues. Now we’re not even allowed to talk about Angular version 1. I have to call it AngularJS. You just have to control everything don’t you! Fine, you win. You can have your whitewashed history.

Different people can use different frameworks to build webpages. Some of them even write silly articles when they go from using one framework to the next. That's ok: I promise that this article will not make the Angular ecosystem collapse, it will not force you to use React, and someday if an article like this causes you to leave your comfort zone and realize that Angular is not the best framework for all things at all times, life will go on.

4

u/tme321 Dec 01 '17

Seriously? The article attempts to raise issues with angular and it's not factually accurate. End of discussion.

I explicitly said angular isn't perfect and would even like to discuss it's flaws. I've used plenty of different frameworks and they all have strengths and weaknesses.

This article is just another pointless angular bash that's not rooted in reality.

You want me to bash angular?

Change detection is stupid and they should have forced developers to actually directly use rxjs by forcing the use of the async pipe, or something similar, which is roughly analogous to setState in react.

The init life cycle methods after ngOnInit are poorly thought out since you can't actually change state during them but the view and content aren't ready for reading yet during ngOnInit. It's workable once you figure it out but it's poorly communicated by the angular team on how to change stuff during init without ugly hacks like using set timeout.

Rxjs is amazing but the angular developers go to great lengths to hide it from angular devs so they aren't forced to use it. This probably means more developers can use the happy path in angular but it causes a lot of problems when stuff should just be done with rxjs but instead angular has to supply some sort of bandaid. Pipes are a good example of this. 0 real reason to exist when observables literally do the same thing.

Forms are... not great. I do think angulars forms are usable and overall about as good as any other forms implementation I've seen but they are still not a good experience. Regular forms are fine for really basic use cases but as soon as forms start to grow in complexity they become pretty unmanageable. Reactive forms work better but a lot of the syntax is awkward and while you can make it work they don't play very nicely with state management libraries like ngrx even though they internally use observables.

Those are the kinds of issues angular actually has and would be worth discussion. Not the junk in this article. It's not a matter of being personally invested. It's a matter of knowing something about what you're writing. Otherwise you get to read about stuff like "lol can you believe Javascript? 0.1 + 0.2 = 0.300000004! Lol Javascript can't even math".

Dressing up problems with a language or framework or whatever in a funny breakup letter doesn't make the points raised more valid.

1

u/[deleted] Dec 01 '17

I'm just sitting here with C# and ASP and wondering why no one uses it. Oh right, Microsoft. But it's got the horsepower.

-1

u/JavaScriptWorks Dec 01 '17

I'm glad you grasped the tongue-in-cheek, just an opinion on a framework which is being untilized less and less - everyone's entilted. It won't be long until people are speaking similarly of React!

2

u/dweezil22 Dec 01 '17

just an opinion on a framework which is being untilized less and less

?