r/javascript • • Nov 24 '14

2 years with Angular. Verdict: good enough (not really)

http://www.fse.guru/2-years-with-angular
10 Upvotes

4 comments sorted by

5

u/_pizzza Nov 24 '14

Good discussion on HN: https://news.ycombinator.com/item?id=8651641

It was "nice" to see that a lot of people hit the same walls I did when I was on a team building an Angular app.

1

u/vivainio Nov 24 '14

Angular can be hard, and it has lots of moving bits you'd rather not have to know about. That's the price of admission, what you get is the biggest community among SPA frameworks (and hence 'guaranteed longevity', which is important if you are paying for people to keep developing the app).

It's also not particularly worse than any of the contenders out there. React may seem like 'walk in the park', but that's because the users are mostly React enthusiasts still at this phase. With bigger community, you get more people willing to complain.

0

u/[deleted] Nov 25 '14

[deleted]

1

u/vivainio Nov 25 '14

That's why I added that it's not particularly worse than the competition (unlike, say, PHP in its own field).

1

u/Randolpho Software Architect Nov 26 '14

Also, the way $digest works, is often cost prohibitive with things as seemingly straight-forward such as tables. With something like React or Knockout (or any mvvm pattern based approach), One can really achieve large data sets with reasonable performance.

Unless you want to update a whole bunch of them at once, in which case Angular suddenly starts shining while Knockout gets a huge black eye.

It's a nuanced tradeoff that people in both camps tend to forget. Angular uses post-update dirty-checking, which means that the digest loop slows down the more things you databind, and Knockout uses immediate-mode update, which means ugly stuttering in your UI if you update a lot of data in response to a single event.

Both have ways to work around their issues -- Angular has one-way databinding for things you know you aren't updating, while Knockout has the "rate limit" extender to delay updates -- but neither is a panacea.