EmberJS,EmberJS / Data和Sproutcore-Datastore [英] EmberJS, EmberJS/Data and Sproutcore-Datastore

查看:119
本文介绍了EmberJS,EmberJS / Data和Sproutcore-Datastore的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

随着从SproutCore 2.0迁移到EmberJS,有了命名空间和Github repo迁移。核心的东西似乎已经转移到 http://github.com/emberjs 组织Github帐户,而还有一些似乎已被移动到插件帐户 http://github.com/emberjs-addons



我正在调查EmberJS与REST服务器一起使用,提供JSON。



我的问题是:我是否使用新的 http://github.com/emberjs/data 代码或较旧的 http://github.com/emberjs-addons/sproutcore-datastore 代码?我会假设前者,但我只是想确定,并得到一些澄清与旧的SproutCore插件发生了什么。

解决方案

emberjs-addons是来自旧的新芽e的端口cosystem。他们没有被修改,看起来他们没有受到emberjs核心团队的高度关注。他们专注于新的emberjs数据。然而,旧的数据存储是经过生产验证的,修改后的版本可以正常使用当前的emberjs relase(0.9.3)。



相比之下,重写的版本看起来真的好的,在项目自述中明确指出,它不被视为生产就绪,但是。



您应该选择哪一个?在我看来,取决于你的项目。如果你正在寻找一些稳定的东西,或者想要尽快将你的应用放在生产中,那么我会给老的新鲜数据存储一下子。另一方面,如果您刚开始使用新的闪光的emberjs-data项目,但要警告您可能必须在某些方面进行战斗。


With the move from SproutCore 2.0 to EmberJS there was the namespace and Github repo migration. Core things seem to have moved to the http://github.com/emberjs organization Github account while there are some others that seem to have been moved to the "addons" account http://github.com/emberjs-addons.

I am currently investigating EmberJS for use with a RESTful server, serving up JSON.

My question is: Do I use the new http://github.com/emberjs/data code or the older http://github.com/emberjs-addons/sproutcore-datastore code? I would assume the former but I would just like to be sure as well as get some clarification on what is going on with the old SproutCore "addons".

解决方案

The emberjs-addons are ports from the old sproutcore ecosystem. They are not modified and it looks like they are not receiving much attention from the emberjs core-team. They are concentrating on the new "emberjs-data". However, the old datastore is production proven and the modified version does work fine with the current emberjs relase (0.9.3).

In contrast, while the rewritten version looks really nice, it is explicitly stated in the projects readme that it is not considered "production ready", yet.

Which one should you choose? In my opinion that depends on your project. If you are looking for something stable or you want to put your app in production any time soon, I would give the "old" sproutcore datastore a go. On the other hand, if you are just starting with your project use the new and shiny "emberjs-data" but be warned that you might have to fight around some edges.

这篇关于EmberJS,EmberJS / Data和Sproutcore-Datastore的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆