EmberJS, EmberJS / Data and Sproutcore-Datastore

With the transition from SproutCore 2.0 to EmberJS, there was a namespace and migration of the Github repository. It seems that the main things have moved to the Github http://github.com/emberjs organization, while there are others that seem to have been moved to the http://github.com/emberjs-addons "addons" account.

I am currently studying EmberJS for use with a RESTful server serving JSON.

My question is: Use new http://github.com/emberjs/data or older http://github.com/emberjs-addons/sproutcore-datastore code? I would prefer the first, but I just would like to be sure, as well as get an explanation of what is happening with the old SproutCore add-ons.

+4
source share
2 answers

Emberjs-addons are ports of the old sproutcore ecosystem. They are not changed, and it seems that they do not get much attention from the main emberjs team. They concentrate on the new "emberjs-data". However, the old data warehouse is proven, and the modified version works fine with the current version of emberjs (0.9.3).

In contrast, while the rewritten version looks very good, readme projects explicitly state that it is not yet considered "ready for production."

Which one to choose? In my opinion, it depends on your project. If you are looking for something stable or want to host your application in the near future, I would give the β€œold” scroll punch. On the other hand, if you are just starting out with your project, use the new and shiny "emberjs-data", but be careful that you have to fight some edges.

+4
source

I use ember models with my own REST adapter while I wait for the ember models to complete. git: //github.com/ebryn/ember-model.git

0
source

Source: https://habr.com/ru/post/1388904/


All Articles