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

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

问题描述

随着从 SproutCore 2.0 到 EmberJS 的迁移,有命名空间和 Github 存储库迁移.核心内容似乎已转移到 http://github.com/emberjs 组织 Github 帐户,而还有其他一些似乎已转移到插件"帐户 http://github.com/emberjs-addons.

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.

我目前正在研究 EmberJS 与 RESTful 服务器一起使用,提供 JSON.

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

我的问题是:我是否使用新的http://github.com/emberjs/data 代码或较旧的 http://github.com/emberjs-addons/sproutcore-datastore 代码?我会假设是前者,但我只想确定并澄清旧的 SproutCore插件"的情况.

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".

推荐答案

emberjs-addons 是来自旧的 sproutcore 生态系统的端口.它们没有被修改,看起来它们没有受到 emberjs 核心团队的太多关注.他们专注于新的emberjs-data".但是,旧的数据存储已经过生产验证,修改后的版本在当前的 emberjs 版本 (0.9.3) 中运行良好.

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.

你应该选择哪一个?在我看来,这取决于您的项目.如果您正在寻找稳定的东西,或者您想尽快将您的应用程序投入生产,我会尝试使用旧"的 sproutcore 数据存储.另一方面,如果您刚刚开始您的项目,请使用新的、闪亮的emberjs-data",但请注意,您可能不得不在某些边缘挣扎.

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天全站免登陆