TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Our experience with Ember

76 pointsby persandover 10 years ago

5 comments

ffnover 10 years ago
While we&#x27;re on the subject of Ember, can an ember guru please share some of your wisdom by explaining the following:<p>Q1: When given some instance of DS.Model, how does DS.Store figure out what child-class of DS.Model it is?<p>Q2: Where and how do DS.Model child-classes get registered with the main ember application?<p>Q3: Say you have some model Person = DS.Model.extend(...) and some PersonAdapter = DS.ActiveModelAdapter.extend(...), when does Ember go about and register your PersonAdapter and figuring out it should be used with the Person model?<p>I&#x27;m trying to create something very like the DS.Adapter system for Ember, except instead of handling ajax requests for data persistence, it would do data live updates, but I&#x27;m confused at exactly how Ember goes about registering its parts.
评论 #8930636 未加载
pyreover 10 years ago
Another thing: Ember-Data doesn&#x27;t support PATCH (last I looked) so it requires sending the <i>whole</i> model to save changes. This can have unintended consequences when you only want to update <i>one</i> thing, but have to send <i>every</i>thing.
评论 #8930697 未加载
评论 #8930098 未加载
justinphover 10 years ago
It&#x27;s always helpful to see summaries of other people&#x27;s experiences with platforms. Ember is going through a big growing period right now and feels like a moving target, but it has a strong direction.
digisthover 10 years ago
Note that ArrayControllers (which are often&#x2F;always used as part of an &quot;each&quot; loop, and can set via itemController in handlebars, if needed) are not singletons, unlike standard controllers. Very useful for lists of items that need individual control.
itsbitsover 10 years ago
&quot;Controllers are singletons&quot; is something i really like in Ember. Why should I execute all the code every time a view loads..