Live data from Hacker News

Why we're moving away from Ember.js

errplane.com

31–40 of 66 posts

Re: Why we're moving away from Ember.js

#31
post #19

Earlier quoted context omitted.

This is our strategy as well at Uniiverse. This is also an effective way of ensuring that data is in sync, should that be a requirement in a particular state. Just attach the call on State.enter() and you're good to go.

We use this strategy also. In setupController functions, (of your routes), we typically run fetches and fill content of our controllers. Why does everyone get hung up on Ember-data?

How are ya'll caching your stuff? Sounds like all that is doing is just making fresh requests for every route.

Re: Why we're moving away from Ember.js

#32
This post is titled wrong:

> I'm not yet ready to leave my server-side framework behind

That is the right title, pulled from the concluding paragraph.

This sentiment happens to apply to angular, backbone, knockout and everybody else.

The first thing I ever programmed was a single-page web app built with MooTools 5 years ago. Its still the most impressive application I've built and people ooh and ahh over it to this day (which is sad, since I was clueless).

When I think about all the JS I've written from then to now, nothing has the promise that ember + ember-data do. My ember code is so straightforward, declarative, and minimal.

Perhaps I haven't gone as deep as the author with ember, but when you pick a framework that is very openly pre-release software, and you're already apprehensive about "asynchronous data" (welcome to the web?) don't expect much success.

Re: Why we're moving away from Ember.js

#33
We've been using Ember in our production environment for nearly a year now. There are lots of plus' and some minus', but I'd like to take a few minutes to share our experience.

We picked up Ember 0.8 in March of last year. Having some prior SproutCore experience it was a pretty easy thing to get going with. Back in those days, Ember was pretty nonconventional, there was a right way and a wrong way to do things, but the framework didn't really enforce a strong point of view. This was really good and really bad at the exact same time. The good was there was a much lower learning curve. The bad was it was so easy to head down the wrong path and shoot yourself in the foot.

I think in the summer of last year, just after Ember 0.9.8 was released, many of the core team members started to explore some the criticism and problems with the framework at the time. The end conclusion, from my view, was to restructure the architecture of the framework. The pieces were the same, but they fit together differently. The biggest of these changes was with the introduction of the strong router conventions. In addition, there we're major changes to the default template context, view hierarchy, runtime and metal, among others. IMHO this was the first time Ember really expressed a strongly enforced convention through the framework.

Fast forwarding to today. Ember has a lot of concepts that people have spent months and months working on. I can sit here and endlessly explain why how the router's pattern makes your application more flexible, or how the template patterns make for easy reuse, etc etc etc. But the truth is you won't really appreciate them until you've given Ember a fair shake.

EDIT: A fair shake doesn't mean picking it up on a weekend. A fair shake means trying to build a reasonable size application with it. Spending a two or three weeks. It has a big learning curve, but that doesn't mean it isn't valuable.

Re: Why we're moving away from Ember.js

#34

Let me give you one reason to stop this bullshit: No Ember code is replaceable, can work together / integrate with any modern JavaScript code like over 30.000 NPM modules. It is the North Korea of the JavaScript world.

I use several npm modules in my ember app.

Re: Why we're moving away from Ember.js

#35

Let me give you one reason to stop this bullshit: No Ember code is replaceable, can work together / integrate with any modern JavaScript code like over 30.000 NPM modules. It is the North Korea of the JavaScript world.

Your comment history indicates that this is a troll account, but I'll reply in case a bystander takes your post seriously:

Ember is actually composed of many smaller, independent packages. For example, we built four microlibraries for use in Ember that you can use totally independently: router.js, route-recognizer.js, rsvp.js and metamorph.js.

Additionally, many people use other great projects from the JavaScript ecosystem to do Ember development, like D3, Crossfilter, mocha, Jasmine, etc. Your assertion that it does not work together or integrate with other tools is 100% false.

Re: Why we're moving away from Ember.js

#36
I've been treating Ember-Data very cautiously, and feeding it carefully prepared data. The biggest irritations involve multi-record commits and validation/error handling. But it's working well enough for my straightforward needs. Still, don't touch it unless you like reading the source, and you're willing to use something that's marked "NOT PRODUCTION READY".

The Ember.js tutorial situation is abominable, but I see two or three new tutorials are out in the last two weeks. And after much head-scratching, I finally figured out what's up with Routes vs. Controllers vs. Views.

Keeping all those caveats very firmly in mind, I'm really happy to be using Ember. My code is lot cleaner than that of my previous web apps, and features are getting done fast.

When it hits 1.0 (including Ember-Data!), I think it's going to be one of several excellent choices.

Re: Why we're moving away from Ember.js

#37

Earlier quoted context omitted.

We use this strategy also. In setupController functions, (of your routes), we typically run fetches and fill content of our controllers. Why does everyone get hung up on Ember-data?

How are ya'll caching your stuff? Sounds like all that is doing is just making fresh requests for every route.

We use a local storage method in browser and app data when running in phone gap

Re: Why we're moving away from Ember.js

#38

Earlier quoted context omitted.

We use this strategy also. In setupController functions, (of your routes), we typically run fetches and fill content of our controllers. Why does everyone get hung up on Ember-data?

How are ya'll caching your stuff? Sounds like all that is doing is just making fresh requests for every route.

The Controller. Then you can do a quick check to see if `someControllerForState.hasData()`.

Re: Why we're moving away from Ember.js

#39
I've played around with Bootstrap and didn't like the idea of trying to replicate MVC on the client. Like the article said, I'm not yet ready to move away from server side frameworks for the most part. However, I like the data binding style of programming a rich client UI and I've actually found that Knockout.js is really nice for just doing that part. Does this seem reasonable? Would I gain anything by moving to Ember to do the same thing?

Re: Why we're moving away from Ember.js

#40
post #28

Ember being impressive but not yet ready for prime time seems to be a common refrain on HN these days, and one of the big gaps holding Ember back appears to be Ember.Data. I have no doubt the team is working hard to improve Ember.Data and move it into "ready for prime time" territory, but why move Ember-proper to a "1.0" release without Ember.Data also being ready? Every major competitor to Ember (including its prede…

> Every major competitor to Ember (including its predecessor, SproutCore) has a data layer that does more than pass the buck off to jQuery SproutCore had a robust data layer, but 2013-era frameworks mostly expose HTTP directly as the abstraction to use, either via $.ajax or a framework-specific HTTP library. Other frameworks are not trying to solve data persistence and loading beyond delegating to HTTP, but Ember's s…

>Other frameworks are not trying to solve data persistence and loading beyond delegating to HTTP

I don't think that's true, given how Backbone and Angular are designed.

Post reply on HN