News for hackers. Stuff that matters.
Re:How do I “think in AngularJS” if I have a jQuery background? by macspoofing on Thursday July 25, 2013 @05:39PM (#6105178)
It shouldn't. AngularJS should work great in most situations, even for simpler pages. I'm a big fan of MVVM pattern as it lends itself to a hard separation between the nitty-gritty view details (e.g. effects, transitions, styles, etc.) and the rest of your business logic. Create your view, declare how it should behave based on view-model values and then hook it up to your core business logic that is now completely agnostic to your view details. jQuery, on the other hand, forces you down the path where your business logic needs to care about how the view should render the content, and those ugly view details are sprinkled all over the place.
Re:How do I “think in AngularJS” if I have a jQuery background? by wwweston on Friday July 26, 2013 @03:58AM (#6107099)
Forces?

Angular is pretty cool, but it's hardly the only neat way of seperating and offloading view detail work.

And jQuery is just a (much) nicer-than-native DOM/browser API. It doesn't provide an application architecture or data bound view handling layer because that's not what it's for, and it no more forces an application style than your text editor does.

This isn't to say that Angular isn't nice for projects short of Gmail's scale (I would/am considering it for some small scale stuff), it just doesn't make much sense to say jQuery forces people a direction by not providing features that aren't really part of its purpose.

Re:How do I “think in AngularJS” if I have a jQuery background? by macspoofing on Friday July 26, 2013 @12:29PM (#6109030)
You can write maintainable code in any language, but certain languages, frameworks, and libraries lend themselves to certain patterns. It's very easy to do the wrong thing with jQuery.