News for hackers. Stuff that matters.
Re:Why you should not use AngularJs by _asummers on Saturday January 03, 2015 @11:00AM (#8831016)
> debuggable views

One thing I've found while doing Android dev is that views should exist as an immutable collection of state (POJO in Java), and there should be some mechanism to inflate a view from that state. I'm not sure how Angular or Backbone deal with this, but that switch simplified the logic a great deal and made testing straightforward.

Re:Why you should not use AngularJs by hippich on Saturday January 03, 2015 @11:09AM (#8831048)
this is idea behind handlebars templating - ideally, no logic whatsoever and you just supply object with data to render. But in reality it gets more complicated than that and sometimes you need to debug templates too. Unfortunately, debugging angular templates is pretty much hell (mostly because of all the "magic").
Re:Why you should not use AngularJs by _asummers on Saturday January 03, 2015 @11:22AM (#8831088)
The way Square's library Mortar handles it in Android is that you essentially have a Model-View Model-View-Presenter sort of situation, where your View Model is JUST your data, your View is JUST the view logic, and the Presenter takes care of knowing how to inflate/deflate the view. It's pretty clean if your design is clean but can get hairy easily if it isn't; that's a feature not a bug for me.