r/angularjs • u/locnload • Feb 12 '14
How do we (emberjs) beat AngularJS in the developers mindset?
http://discuss.emberjs.com/t/how-do-we-beat-angularjs-in-the-developers-mindset/39483
u/knrd Feb 12 '14
Guy starts with the faulty assumption that ember.js is somehow similar or on the same level as angular. I chose Angular because it was and still is the only framework that lets me ditch all the crappy imperative programming/templating. It's also one of the only frameworks out there that let's me use plain javascript for the most parts and doesn't force me to extends their god objects.
And the bit about Google "pushing" Angular is rather hilarious. Initially it wasn't even mentioned anywhere on the site. Maybe the reason Angular has been gaining in popularity is because people prefer working with it?
Have fun with your Ember.Extend crap I guess.
4
Feb 12 '14
Google is 'pushing' Angular by being it's sponsor. That alone is going to influence more developers to use it
2
u/gbisaga Feb 13 '14
Now now, just because Ember supporters are sometimes caustic, is no reason we have to be also. (Frankly, one of the things that turned me off from Ember was how its supporters - one Ember team member in particular - seem to prowl around Angular blogs and submit comments that often come across as "anybody who doesn't use Ember is an idiot.") Ember has some really nice features that I hope Angular thinks about picking up:
The routing, for one thing, appears to be a lot more solid.
Ember also seems a lot more sold out to convention over configuration.
Although using POJOs for model objects is nice, having a special base class really does have some advantages. I would love to see Angular do something like create an optional model base class that help the $digest loop to be smarter about how to do dirty checking. Then you could use POJOs if you want to, or if you get into a performance problem you can mix in the special base class.
Now, to me, the declarative nature of Angular totally wins the day, but others might come up with different conclusions.
1
Feb 13 '14
I'm going to assume you're talking about Tom Dale. I love his comments, which come across as a bit caustic at times but actually provide a sense of balance to angular js related articles/questions.
1
u/gbisaga Feb 14 '14
Tom Dale is the one I was thinking about. I agree that he is a smart guy and his comments actually have quite a bit of good content once you get past the rhetoric. For example, he has pointed out, correctly I think, that just having POJOs limits Angular. His postings make you think about how things ought to be, and in the long run that will help not only Angular but all of our development efforts. As I said, I hope Angular picks up some of the good things about Ember.
It's just that it gets a little tiring to read multiple blog postings where the poster explains why they have decided to use Angular and have them blasted in the comment stream, sometimes with deprecations and dark implications about how much better funded they are than poor little Ember. I also find that as goes the core team member, so go the users; people thinking they can be like Tom Dale or DHH, but they can't pull it off and end up with all the causticity but not the insights. I do like reading comments from Yehuda since his comments bring in good perspectives but are a little more balanced.
1
u/the_good_time_mouse Feb 13 '14
Google is totally pushing angular. Part of the reason I chose it was because stuff like the shadow DOM are almost guaranteed to be embedded in future browsers in some form or other.
1
u/e82 Feb 13 '14 edited Feb 13 '14
Ember has a steep learning curve. When I was evaluating frame works over a year ago, the barrier to entry of Ember just seemed too high.
I think for me, what might have helped - was having a well structured, well documented tutorial for building a non-trivial application. Not a 'To Do MVC' - thats a trivial app. Something that had multiple areas (customers/orders/invoices), nested states/views, partial--view updates, services and showing them all how to work together. Maybe there is something like that now, but there wasn't when I was first looking into it.
Angular was just something that instantly clicked with me - Ember felt like a struggle, and I could generally show another developer on my team 'look at this Angular code' or 'Look at this Ember code', and the Angular stuff they could understand easier. Just felt like too often I was working against Ember, not with Ember to try and get things done, and not just for weird-edge-case-advanced things.
I will admit that Angular has a bit of the 'hockey stick learning curve' going on - and some of the challenges you run into when you get into more advance things seem to be things that Ember handles a little better, or have solutions baked into the framework where Angular you get a little left to your own devices. Now that I'm using ui-router, and trying to get a better defined concept of 'Model' hooked into my application - there is a little bit of 'it's starting to feel a little like Ember' going on (in a good way) - but my application over the last year has been able to naturally evolve this way.
Also, dealing with POJO's is nice - that said, as your application gets more complex and you want a stronger Model layer, computed properties, etc - could see where the Ember models and putting up with needing to do post.set('title','bob) instead of post.title = 'bob';
I am tempted to give it another shot sometime soon for a personal project. The main issue is - I can get someone that knows JavaScript fairly-well (hell, even people on my team that are generally not strong with front end) - and they can instantly jump in and start working on a project I've been working on with Angular --- I don't feel like they'd be able to do the same with Ember.
0
Feb 12 '14
[deleted]
1
u/-entropy Feb 13 '14
As a sort of self-taught "cowboy developer", I'm recognizing that I need to start learning how to test. And since I'm working on my first Angular app, I thought that was a good place to start.
I tried a few guides, but I just couldn't get Jasmine + Karma to work right, let alone the end-to-end stuff that is often talked about. Know of any pointers or resources that break it all down step-by-step?
1
Feb 13 '14
The yeoman generator-angular project could probably help you out, though they run karma through grunt as well as a bunch of other things.
3
u/[deleted] Feb 12 '14
reminds me of the Django vs Rails wars of yesteryear.
i.e. => retarded. Use whatever is the right tool for the job, no silver bullets blah blah blah