Live data from Hacker News

Advice On & Instruction in The Use of Ember.js

trek.github.com

21–30 of 72 posts

Re: Advice On & Instruction in The Use of Ember.js

#21

Earlier quoted context omitted.

Sorry, I just meant compared to Rails in terms of impact. Ember is nothing like Rails architecturally. There's a good comparison here: http://emberjs.com/guides/ember_mvc/ So yeah. Ember's problem is convincing people there's a problem (hint: there definitely is).

Those are implementations details, to the developer they serve a similar purpose. This is my problem with it, a web framework that gives equal weight to M, V, and C is missing the point; in the client the View is fucking everything . It is where any developer will spend the vast majority of their time; not in code organization. The frameworks and I mean this plurally, that win will be those that give structure to app…

Just because a framework has models, views and controllers does not mean it gives them "equal weight".

Re: Advice On & Instruction in The Use of Ember.js

#22

Earlier quoted context omitted.

Sorry, I just meant compared to Rails in terms of impact. Ember is nothing like Rails architecturally. There's a good comparison here: http://emberjs.com/guides/ember_mvc/ So yeah. Ember's problem is convincing people there's a problem (hint: there definitely is).

Those are implementations details, to the developer they serve a similar purpose. This is my problem with it, a web framework that gives equal weight to M, V, and C is missing the point; in the client the View is fucking everything . It is where any developer will spend the vast majority of their time; not in code organization. The frameworks and I mean this plurally, that win will be those that give structure to app…

Just because a framework has models, views and controllers does not mean it gives them "equal weight".

Re: Advice On & Instruction in The Use of Ember.js

#23

Earlier quoted context omitted.

Sorry, I just meant compared to Rails in terms of impact. Ember is nothing like Rails architecturally. There's a good comparison here: http://emberjs.com/guides/ember_mvc/ So yeah. Ember's problem is convincing people there's a problem (hint: there definitely is).

Those are implementations details, to the developer they serve a similar purpose. This is my problem with it, a web framework that gives equal weight to M, V, and C is missing the point; in the client the View is fucking everything . It is where any developer will spend the vast majority of their time; not in code organization. The frameworks and I mean this plurally, that win will be those that give structure to app…

Then you do not understand what M and C does. It might be called a client but it is a stateful client. Views come and go , you organize your code in C and M and you'll have a robust long lasting application (in a desktop app, a mobile app or a browser app).

Re: Advice On & Instruction in The Use of Ember.js

#24
post #17

Let me tell you why I don't care about Ember.js at the moment: It's an "all or nothing"-solution. I couldn't care less about Stateful Single-Page Applications. I'll take a stateless, curlable, crawlable (remember Google?), old-style web site any time. Of course, some parts might require more dynamicness than other, and in that case it's lovely to jump to client side MVC. But it doesn't seem that Ember.js wants to pla…

> I couldn't care less about Stateful Single-Page Applications. I'll take a stateless, curlable, crawlable (remember Google?), old-style web site any time

I take it that all of your applications involve public content with minimal if any enhancements to logged in users?

Re: Advice On & Instruction in The Use of Ember.js

#25
post #17

Let me tell you why I don't care about Ember.js at the moment: It's an "all or nothing"-solution. I couldn't care less about Stateful Single-Page Applications. I'll take a stateless, curlable, crawlable (remember Google?), old-style web site any time. Of course, some parts might require more dynamicness than other, and in that case it's lovely to jump to client side MVC. But it doesn't seem that Ember.js wants to pla…

Ember is primarily for web apps, not web sites. Apps that require a login are not concerned about crawlability. So, if you're just building websites, you are correct to not choose Ember.js.

Also, it's trivial to have some pieces of your app rendered by rails or whatever you're using server side.

We're using Ember to build the next generation of our product (a web app) and it has been an extremely pleasurable experience.

Re: Advice On & Instruction in The Use of Ember.js

#26
post #15
post #14

Can anyone tell me whether a website built with Ember.js's default settings suffers from the same readability problems with font and contrast? If so, that tells me that I probably won't want to invest any time in learning to use Ember.js.

Is this a serious question, or just snark? Ember.js does not ship with a default stylesheet—it's up to you to style. It just generates plain HTML.

This was a serious question. My vision is not what it was when I was younger. I am finding more and more websites are very difficult for me to read, and this one was unreadable for me without the help of Evernote's Clearly extension.

I am a firm believer in the utility of web frameworks, and I'm always willing to look at new ones. I assumed that the tutorial website had been built using Ember.js, and my first impression was not favorable.

Re: Advice On & Instruction in The Use of Ember.js

#27
post #17

Let me tell you why I don't care about Ember.js at the moment: It's an "all or nothing"-solution. I couldn't care less about Stateful Single-Page Applications. I'll take a stateless, curlable, crawlable (remember Google?), old-style web site any time. Of course, some parts might require more dynamicness than other, and in that case it's lovely to jump to client side MVC. But it doesn't seem that Ember.js wants to pla…

I was concerned about this as well, but I'm successfully using an Ember app as just part of my application. The plan is to use multiple ember apps within the same rails app.

Re: Advice On & Instruction in The Use of Ember.js

#28
I've now shipped an Ember.js application and a knockout.js application. I enjoyed ember quite a bit but feel that knockout gives me all the magic with half the complexity.

It is true as the author mentions that it doesn't aim to fix the UI/statefullness issue, but I slapped on Backbone Routing on to my knockout code and it made capturing 'state' and urls a breeze.

The last time I used ember was 0.9.6 and I don't think this routing stuff was even in it so I was excited to see talk about it. Unfortunately it looks to be even more complicated then I expected it to. :(

Knockout may be creating some massive memory footprint in the background that will bite me down the line, but I'm writing significantly less code than I was with Ember. For example, In ember you have to create view objects and if you want your view objects to sync data with your controller you have to explicitly define them:

App.userController = Ember.Object.create({

  content: Ember.Object.create({

    firstName: "Albert",

    lastName: "Hofmann",

    posts: 25,

    hobbies: "Riding bicycles"

  })
});

App.UserView = Ember.View.extend({

  templateName: 'user',

  firstNameBinding: 'App.userController.content.firstName',

  lastNameBinding: 'App.userController.content.lastName'
});

Now I get to do my handlebars template

{{firstName}}

In knockout just have to do: App.UserController = {

content = ko.observable(new content());

}

ko.applyBindings(App.UserController);

And now I get to do a knockout template inline with my html:

It just seems like there are fewer steps with knockout and I'm getting more done. The html is a lot uglier, but it also clearer what is going on when I read it.

The ember guys have come a long way on their doc and they should be commended on it. I like the patterns they are talking about I'm just not sold that it has to be done the way they are doing it. Thanks to the author for putting together such an in depth post to me in the right direction in getting back into Ember.

Re: Advice On & Instruction in The Use of Ember.js

#29
post #17

Let me tell you why I don't care about Ember.js at the moment: It's an "all or nothing"-solution. I couldn't care less about Stateful Single-Page Applications. I'll take a stateless, curlable, crawlable (remember Google?), old-style web site any time. Of course, some parts might require more dynamicness than other, and in that case it's lovely to jump to client side MVC. But it doesn't seem that Ember.js wants to pla…

it seems ember is targeting web apps, which are generally behind a login for the bulk of the app, making most of your contentions moot. Not disagreeing with you, just making the point that Ember is probably not trying to be a one size fits all solution

Re: Advice On & Instruction in The Use of Ember.js

#30
This is such a timely article, thanks! I was just listening to the video on this week's JavaScript Weekly and considering where to start among the js application frameworks. It would be nice if the author expanded on the different categories of js app frameworks.

Video: Beyond the DOM: Sane Structure for JS Apps: http://www.youtube.com/watch?v=cd7HHN6IkrU

Post reply on HN