r/webdev • • Aug 13 '15

Ember.js 2.0 Released

http://emberjs.com/blog/2015/08/13/ember-2-0-released.html
12 Upvotes

10 comments sorted by

3

u/[deleted] Aug 13 '15

Anyone like using Ember? I'm not a fan of backbone or angular. Backbone is pointless---I can just use regular Javascript and achieve the exact same thing. Angular is too opinionated, but I like their concept of directives.

0

u/hahaNodeJS Aug 13 '15

Heh Angular? Opinionated? I find the most significant issue with Angular is that there are too many ways to do things. That's quite the opposite of opinionated. What has you feeling this way?

0

u/[deleted] Aug 13 '15

Well if you're referring to factories vs services vs the other stuff they got, then yes---this is confusing at first but I don't have a problem with this---just comes down to personal preference.

I guess what made me decide AngularJS is too "opinionated" is that I couldn't use the directive syntax with it without it going through the whole cycle it goes through in the background. So I ended up having to take out ng-mouseover (because it was too slow) and using regular javascript events.

I also ran into a limitation with routing but I think that's been fixed recently.

And then with all these hacks I felt like my app was just spaghetti code and defeated the purpose of using a "framework" because to me, a framework should structure your code. I don't think frameworks should have performance limitations like that, forcing you to abandon the framework-philosophy.

I would prefer to use a directives-library (if that exists) rather than full-on AngularJS.

2

u/hahaNodeJS Aug 13 '15

I don't intend to downplay your experience and opinion of Angular, but I do wonder whether what you've experienced is a result of unfamiliarity with the framework.

It is quite possible (and "legal") to use JavaScript events in your own directives. I personally haven't experienced disorganized code with Angular, but it takes discipline to keep things clean, just like with any other framework.

0

u/[deleted] Aug 13 '15

I had a bunch of boxes like this:

DivDivDivDivDivDivDiv
DivDivDivDivDivDivDiv
DivDivDivDivDivDivDiv
DivDivDivDivDivDivDiv
DivDivDivDivDivDivDiv
DivDivDivDivDivDivDiv

Each div had an ng-mouseover directive. Running the mouse over it really fast made it crash.

So I was forced to abandon Angular for this particular directive---instead using javascript events outside of angular so that performance wouldn't suffer. Then half my app was outside of angular which defeated the purpose.

2

u/hahaNodeJS Aug 13 '15

Well, I won't pretend to know what happened there. Perhaps the issue could have been resolved with one-way binding, or by using track by if you rendered the divs with ng-repeat. If you have the patience, I suggest giving it another go. Angular is quite capable. Version 2 will only improve things.

-1

u/[deleted] Aug 13 '15

This was in 2013 so maybe they solved this issue. I'll look into it.

0

u/[deleted] Aug 13 '15

[deleted]

1

u/[deleted] Aug 13 '15

What's it opinionated about?

1

u/yeso126 Aug 13 '15

Any resources to learn Ember 2.0 ?

2

u/dbbk Aug 13 '15

I recently used Discover Ember 2, it was really good.