r/javascript • • Nov 05 '14

AngularJS: The bad parts

http://larseidnes.com/2014/11/05/angularjs-the-bad-parts/
87 Upvotes

88 comments sorted by

View all comments

Show parent comments

-7

u/lord2800 Nov 05 '14

That's a wtf moment (and the point)

And is utterly and completely wrong. The . is what makes that not the case--it forces the prototype lookup to access the expected variable, rather than creating the new one. That's why the author is wrong.

That's not really true.. React, Vue, Ractive are the ones that comes to mind that doesn't use a digest loop. I'm sure there's plenty other..

None of those are UI frameworks. And they do, in fact, all do the same thing that Angular will be doing, which is iterating over the things that are known to have changed and then notifying subscribers.

But that's the problem, Angular is not a language, it's a framework.

A framework written by people. People are the ones redefining the things, not the framework.

But yeah, all those things are "getting" fixed... in 2.0? When is that going to be released? Will it be easy to upgrade?

Some of them earlier, some of them later. Things are still in flux for exactly these reasons.

At the current state of angular, the author doesn't think Angular is a good framework

And a good reviewer/journalist/whatever he wants to call himself would have called out the things that are in flux. But he did none of that.

All of this being said, I'm a fan of stripping apart Angular (which they're already doing) and just using Web Components for the frontend UI (which I can do by not including the templating engine). Angular has drastically shifted my thinking on managing UI componentization, and Web Components has only reinforced that.

-6

u/lord2800 Nov 05 '14

Just to prove a point, here's point #1 thoroughly debunked: http://plnkr.co/edit/fR3CJCIaXE8mf8CvQGHL?p=preview

8

u/maktouch Nov 05 '14

How is that debunked? It does exactly what the author said it do.

  1. When you edit the first input, the second input get modified, as expected.

  2. Refresh.

  3. When you edit the second input, the first input doesn't get modified.

It's a problem with 2-way binding. Since Angular uses 2-way binding, that's a problem.

1

u/ganarajpr Nov 06 '14

Wrong attribution. Its not a problem with 2-way binding. Its a problem with prototypical inheritance.