什么是 SproutCore?我为什么要关心?

发布于 2024-09-08 15:18:51 字数 612 浏览 1 评论 0原文

刚刚看到一个消息,有一个人离开苹果去开发SproutCore。这似乎又是 jscript 代码的集合。

那么,有什么大不了的,以及很多人们为此唱歌跳舞的方式是什么?

它提供了哪些 jquery / extJs / 等不提供的功能?

人们如何决定是否值得投入时间来了解它对他们是否有用?

它一定有什么不同之处让人们兴奋,但是我可以从它的网站上看到什么,那么我错过了什么?

(或者我无法理解它的网站,因为我不是 ruby​​ 程序员?)


我刚刚发现 http://wiki.sproutcore.com/About-SproutCore-Project 给出了更好的写法,SproutCore 似乎不支持 IE6,这在一定程度上限制了它只能用于家庭用户和小公司的网站。有一天,大公司和政府将放弃 IE6,但我仍然看到太多招标规范中对 IE6 的支持。

I have just seen the news that a person has left Apple to develop SproutCore. It seems to yet another collection of jscript code.

So what is the big deal and way are a lot of people making song and dance about it?

What does it provide that jquery / extJs / etc does not provide?

How does anyone decide if it is worth investing the time to find out if it is useful to them?

There must be something different about it that is getting people excited, however I can see what from its website, so what am I missing?

(Or it that I can’t understand its web site because I am not a ruby programmer?)


I just found http://wiki.sproutcore.com/About-SproutCore-Project that gives a better write up, it seems that SproutCore does not work with IE6 that somewhat limits it to websites for home users and small companies. One day large corporations and government will move away from IE6, but I still see IE6 support on the spec for way too many tenders.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

空气里的味道 2024-09-15 15:18:51

SC 的特点是它是一个用于编写 RIA 的功能齐全的 MVC 框架。 ExtJS 是集成组件的集合。 MVC 意味着您有不同的模型、视图、控制器层。

我与 SC 合作了 6 个月,对其有效性感到惊讶。在 SC 中,当您加载某些模型对象时,通过控制器绑定这些对象的视图会自动更新。您不需要编写任何代码,就像在 extjs 中那样,用户执行某些操作,并且有一个事件处理程序告诉所有视图进行更新。 (或者至少你写的这类东西少了很多)。

SC 小部件集并不像 EXT 那样强大,但您可以为任何内容编写自己的视图。另一件事是 SC 集成了单元测试框架。那太棒了。您可以单独测试模型代码、控制器代码和视图代码。

编辑 - ExtJS/Sencha 在其最新版本中变得更加面向 MVC,因此 ext 是“组件框架”的说法不再适用。

我仍然认为 SC 是一个很棒的框架,它会给任何感兴趣的人带来很大的帮助。

The deal with SC is that it is a fully featured MVC framework for writing RIAs. ExtJS is a collection of integrated components. MVC means that you have distinct Model, View, Controller layers.

I worked with SC for 6 months and was amazed with the effectiveness of it. In SC, when you load some model objects, the views bound those objects via controllers automatically update. You don't write any code, like you would in extjs, whereby a user does something and there is an event handler that tells all the views to update. (Or at least you write a lot less of that type of stuff).

The SC widget set is not nearly as robust as EXTs, but you can write your own views for just about anything. The other thing is that SC comes with a unit testing framework integrated. That is awesome. You can test your model code, your controller code, and view code in isolation.

EDIT -- ExtJS/Sencha has become more MVC oriented in their latest release, so the statement that ext is a 'framework of components' no longer applies.

I still think SC is a great framework that will give anyone interested a lot of mileage.

吝吻 2024-09-15 15:18:51

看起来你已经厌倦了新东西:)

但它是一个非常强大的框架,试图超越 Web 应用程序上的 DOM 限制,sproutcore 的范围与 jQuery/extJs 等不同,你可以将它与例如 cappuccino 框架 但不是大多数已知的 js 库。两者都有自己的控件、Web 元素等,可以在 Web 浏览器上创建更多类似桌面的应用程序。

您可以查看 Mozilla 的 Bespin 项目,了解 SproutCore 可以实现哪些目标。还可以看看他们使用卡布奇诺做了什么,以了解他们离开 Apple 工作的原因。

It seems like you are tired of new stuff :)

But it's a quite powerful framework which tries to go beyond DOM limitations on a web application, sproutcore has a different scope than jQuery/extJs etc., you can compare it to for example cappuccino framework but not to most known js libraries. Both have their own controls, web elements etc to create more desktop like applications on web browsers.

You can check Mozilla's Bespin project to see what can be achieved with SproutCore. And also take a look at what they have done with Cappuccino to understand why they left their jobs at Apple.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文