3 ms·
Angular has managed to do things in a remarkably different way to most of the other JS frameworks out there. Opinionated app structure, enforced strict separati
by Wintamute 13y ago
Angular has managed to do things in a remarkably different way to most of the other JS frameworks out there. Opinionated app structure, enforced strict separation of concerns, views are live DOM, strictly no DOM manipulation in controllers, promises used liberally, testability right up front, etc. ... I agree its just a framework and your heuristics for framework evaluation are still valid, but it's at least understandable that your average jQuery/Backbone dev could feel some trepidation before diving in ... it may represent an enforced "level-up" in terms of their entire approach to building web apps.
- lerouxb 13y agoI agree with you except the "level up" word choice. That implies that it is necessarily better, whereas I still think that's up for debate. I think we've all been burnt by "magic" code before. A good "smell" for that sort of thing is when newbies start asking questions on stack exchange like "How do I do this in Angular?" when they should be asking "How do I do this in JavaScript?" (or rather "How do I do this at all?").
- altcognito 13y agoFor example, lets just create a controller on the fly. http://stackoverflow.com/questions/15250644/angularjs-loading-a-controller-dynamically http://stackoverflow.com/questions/15250644/angularjs-loadin... Lets do something even more basic, like use HTML5 push state: http://stackoverflow.com/questions/11095179/using-html5-pushstate-on-angular-js http://stackoverflow.com/questions/11095179/using-html5-push... Oh, that's "easy", how could I have missed that in the API docs? http://docs.angularjs.org/api/ng/provider/$locationProvider http://docs.angularjs.org/api/ng/provider/$locationProvider Oh.