Live data from Hacker News

AngularJS versus Ember

eviltrout.com

71–80 of 163 posts

Re: AngularJS versus Ember

#71
post #26

Is there anyone out there who has written non-trivial applications (i.e. a _lot more_ than the quintessential todo app) in both, AngularJS & EmberJS and can offer a non-biased opinion? Some time ago, I started off with AngularJS, I liked what I saw (except the dirty checking part) and started building my product / startup with it. I don't have the time to stop all dev and experiment with EmberJS, but would like to kn…

there is no directives in EmberJS , you could use any DOM templating engine ( =/= string template engine like Mustach ) with it I guess to get something similar to directives.

No, I wouldn't say that's something similar to directives.

Re: AngularJS versus Ember

#72
What I REALLY want is a relatively clean implementation of MV* that I can re-use all parts client and server.. NodeJS is the natural platform, but I haven't really seen much that makes reusing rendering, models and business logic client and server to a natural point. I know that there are people working on this, but I think that getting closer to a solution that can easily converge on such re-use for really dynamic apps, maybe mobile being more server-side, and desktop/tablet being more client will do very well in the end.

Re: AngularJS versus Ember

#73

A higher level framework makes you more productive but a single bug can get you stuck for hours, days or weeks. A lower level framework doesn't make you as much productive but you have a better mental model of what is going on and bugs get solved quickly. Keep in mind when choosing a framework.

THIS! This is exactly what I was trying to figure out how to type. Right now ember is especially hard to learn since it is constantly changing and ember-data isn't done yet. As a result there are 5 different ways of doing something and when you get stuck you finally solve it by finding someone else who had the same problem and that is when you learn that the tutorial was for rc3, not rc5. But the huge problem is that…

> constantly changing

1.0.0.rc1 was released on February 15, and (to my knowledge) there has been _one_ backwards-incompatible change since then.

> ember-data isn't done yet

You don't need to use ember-data: http://eviltrout.com/2013/03/23/ember-without-data.html

Re: AngularJS versus Ember

#74
post #62
post #55

Earlier quoted context omitted.

Am I missing something? 10k apps on each, so 30k apps... meaning "30 thousand applications"? If those three libraries have each been around for ~10 years (have they?), that's like 3 apps on each per day . That seems like an awful lot...

I forgot to write LOC after 10k; my point was that each app took longer than a weekend to write and I had to deal with at least one wart in each framework.

Ah, that makes much more sense! Thanks for the informed insights.

(To the people downvoting my previous comment: wtf?! Politely questioning someone's stated experience when it borders on absurdity is perfectly valid. And the GP provided a perfectly reasonable explanation: s/10k+ apps/10k+ loc apps/.)

Re: AngularJS versus Ember

#75
post #44
post #13

As a gentle reminder, Fred Brooks said "there are no silver bullets" in software ( http://en.wikipedia.org/wiki/No_Silver_Bullet ). Even without knowing the details of this article, I believe it's unlikely that "not even close" is at all accurate. There likely are advantages, but from my experience (10k+ LOC apps on each Ember, Angular, and Backbone) no one MVC (or MV-) framework is inherently better. They all have s…

> 10k+ apps on each Ember, Angular, and Backbone Have you written about them? I haven't come across anyone who has enough experience with more than one of them to comment broadly.

I'm definitely not qualified to provide an opinion. My short summary:

Backbone was tiring for me and my partner with all the files and code to set up each view. I also never liked putting templates in script tags -- it just felt dirty. We see Ember and Angular as similar (how do you pick which language you like?), and we only picked one for atheistic reasons (data-binding in HTML) in our current project. Since I haven't written the same app in each framework, it would be unfair to comment further.

Re: AngularJS versus Ember

#76
post #13

As a gentle reminder, Fred Brooks said "there are no silver bullets" in software ( http://en.wikipedia.org/wiki/No_Silver_Bullet ). Even without knowing the details of this article, I believe it's unlikely that "not even close" is at all accurate. There likely are advantages, but from my experience (10k+ LOC apps on each Ember, Angular, and Backbone) no one MVC (or MV-) framework is inherently better. They all have s…

What a cop-out.

I am pretty sure you prefer Angular but are just too pussy to say it.

Maybe you think people will think less of you for preferring the framework that is less complex.

I assumed 'not even close' would mean this guy would be siding with AngularJS.

Its sad but many people have the mistaken belief that programming languages and frameworks that are harder to use are more sophisticated and therefore better.

What I think is that deep down people are afraid that others will think they weren't smart enough to figure out the more complex and difficult to use thing.

What I am sure of is that a system that is less complex and easier to use is better engineering.

Re: AngularJS versus Ember

#77
post #39

At that point, what was the advantage of Sinatra? You were basically running a Rails application. I disagree. I've built many applications using both frameworks and Rails is overkill 80% of the time, especially in front-end heavy apps where most of your routes are GET/POSTing JSON data.

Note the "At that point". The author claims that if you use sinatra and install ActiveRecord, and basically everything else that defines Rails, you are just running Rails without running Rails. He is right. I like to write my own SQL-Queries, so Sinatra is the better choice. But if you'd want to use an ORM, why not directly use Rails?

But if you'd want to use an ORM , why not directly use Rails?

An ORM (the only example listed by you or the author) does not a Rails app make. There are dozens of ORMs of all types across every language; DHH did not invent the Active Record pattern and Rails' implementation of it is not the only viable option, even in Ruby (consider Sequel's ORM for example).

Re: AngularJS versus Ember

#78

A higher level framework makes you more productive but a single bug can get you stuck for hours, days or weeks. A lower level framework doesn't make you as much productive but you have a better mental model of what is going on and bugs get solved quickly. Keep in mind when choosing a framework.

well said ! i agree 100% !

Re: AngularJS versus Ember

#79
post #75
post #44

Earlier quoted context omitted.

> 10k+ apps on each Ember, Angular, and Backbone Have you written about them? I haven't come across anyone who has enough experience with more than one of them to comment broadly.

I'm definitely not qualified to provide an opinion. My short summary: Backbone was tiring for me and my partner with all the files and code to set up each view. I also never liked putting templates in script tags -- it just felt dirty. We see Ember and Angular as similar (how do you pick which language you like?), and we only picked one for atheistic reasons (data-binding in HTML) in our current project. Since I have…

I also find data-binding in HTML to be aesthetically pleasing. We use knockout, which has served us well but feels like we'd rather be an Angular.

What are you working on? I did a quick trawl of your history but didn't see any mention.

Re: AngularJS versus Ember

#80
Does this boil down to:

1) The DOM is the model. JS reads elements and data attributes and builds a model from them. Then updates the model when the DOM changes. (Angular)

2) The model is loaded from JSON. Then the App builds the DOM based on the model. (Ember)

So is the question: Does it start with the DOM, or start with javascript objects?

Am I understanding this debate correctly?

Post reply on HN