3 ms·
This is a rehash of the same problems that have been circulating for years [0]. There is literately not a single original thing here. Most of these issues are
by SonicSoul 11y ago
This is a rehash of the same problems that have been circulating for years [0]. There is literately not a single original thing here.
Most of these issues are gotchas that can easily be avoided once the developer is aware of them (such as scope inheritance / dynamic scope which is due to Javascript Prototypal Inheritance [1]).
What's ironic is that angular 2 is fully rewritten in part to fix all of these issues, but none of that is mentioned, and the only focus is on how much Angular 2 sucks because it's not compatible with 1. There is also no mention of clear migration path and ability to run angular 1 and 2 side by side [2]
I've put 4 Angular sites in production and never faced issues due to any of these problems. I've had issues with caching, end to end testing of ajax calls, sharing functionality with non angular parts of the site. The very fact that the OP listed these issues tells me that he's not actually used Angular in production.
Angular 1.x has limitations for sure but it works quite well in most scenarios.
[0] http://larseidnes.com/2014/11/05/angularjs-the-bad-parts/ http://larseidnes.com/2014/11/05/angularjs-the-bad-parts/
[1] http://jimhoskins.com/2012/12/14/nested-scopes-in-angularjs.html http://jimhoskins.com/2012/12/14/nested-scopes-in-angularjs....
[2] http://angularjs.blogspot.com/2015/08/angular-1-and-angular-2-coexistence.html http://angularjs.blogspot.com/2015/08/angular-1-and-angular-...
EDIT:
shortened.
EDIT2:
added conclusion
- snorrah 11y agoWhere is this focus about Angular 2 sucking? The author is in fact happy about Angular 2 being a re-write. Read the section under Problem 6, where he calls the proposed complete re-write of Angular courageous and laudable. Now he says this is a problem for Angular 1.x because there's no carry-over of knowledge into 2.x, but that's in no-one saying Angular 2 sucks like you are suggesting.
- SonicSoul 11y agoyou're right, that was not the best way to put it. I just saw this which seemed like focusing on negative w/out noting that all his complaints will be addressed. Not convinced yet? Well, what if we were to tell you that the next major version of Angular will take a scorched earth approach to the existing structure that means it will have zero retro-compatibility with what exists today?
- joshschreuder 11y agoSo then why is it under a heading that says Problem 6?
- CitizenKane 11y agoThis is the comment I was looking for. There was definitely a lot of hand-wringing around the migration path from Angular 1 to 2, but I think the resolved the issue quite nicely. I've used it in production in a few scenarios and it's worked just fine. They're fairly complex applications and performance hasn't been an issue. Granted, with the author trashing Angular and then talking about how awesome their React article is going to be I think we can all see where this is heading.
- SonicSoul 11y agoyeah I wonder how he managed to make front page of HN with these outdated ng-criticisms