SproutCore 和卡布奇诺

发布于 2024-07-10 14:05:51 字数 1560 浏览 10 评论 0原文

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

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

发布评论

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

评论(5

苄①跕圉湢 2024-07-17 14:05:51

确实是困境。

我个人在 Cappuccino 上尝试了一次机会,但那是因为我目前正在参与 Objective-C,并且理论上有可能将我的代码(经过一些调整)插入 javascript/web 环境 - 很诱人。

不管怎样,如果你正在进行可可开发,你将在几个小时内启动并运行,但我相信你已经自己弄清楚了。

您将(在卡布奇诺中)有一个非常好的抽象可以使用。 我认为这很重要。

Dilemma indeed it is.

I personally took a chance on Cappuccino, but that is because I'm currently involved in objective-c and having the theoretical possibility to plug my code (with some adjustments) into a javascript/web environment - is tempting.

Anyway, if are you doing cocoa development, you will be up and running in a matter of hours, but I'm sure you've already figured that out by yourself.

You will (in Cappuccino) have a very nice abstraction to work with. I think that matters.

别再吹冷风 2024-07-17 14:05:51

事实上,这并不是一个两难的问题。 这归结为一个简单的问题:

您有使用 Cocoa (Objective-C) 的经验吗? (或者,您是否计划在未来通过针对 OS X 或 iPhone 进行开发来大量使用 Objective-C?)

如果是这样,请选择 Cappuccino。 如果没有,请选择 SproutCore。

没有理由从一开始就尝试学习 Objective-C,同时学习 Web 应用程序和新框架的所有怪癖和新奇之处,从而搁置您的项目。

It actually isn't that much of a dilemma. It boils down to a simple question:

Do you have experience with Cocoa (Objective-C)? (Or alternatively, do you plan on using Objective-C heavily in the future by developing for OS X or iPhone?)

If so, choose Cappuccino. If not, choose SproutCore.

There is no reason to put your project behind from the start by trying to learn Objective-C and at the same time, all of the quirks and novelties of web applications and a new framework.

千年*琉璃梦 2024-07-17 14:05:51

这两个项目的文档水平都令人震惊。

然而,由于 SproutCore 现在得到了 Apple 的支持,并且 Apple 非常擅长提供良好的文档,因此我预计这种情况会改变。

不过,Cap 有一个已发布的实际应用程序 (280Slides),您可以使用它来了解您应该如何构建您的应用程序。 所以现在开始使用 Cap 可能更容易,特别是因为你了解 Objective-C。

请注意,对于这两个项目,开箱即用的控件数量非常有限,因此您会发现自己正在实现自己的控件。 另外,SproutCore 默认情况下很丑!

就我个人而言,我认为 Cap 方法非常出色。

您不需要编写任何 HTML 或 CSS。 真的感觉就像您正在编写一个桌面应用程序,并且通过使用 Objective-js 进行编码,您基本上从浏览器中抽象出来。

然而,我并不喜欢该语言本身。 如果他们坚持使用 pov JavaScript,我会更喜欢它。

我知道 Mac 开发人员会喜欢您使用 Cap 创建的代码的潜在可移植性,但是自从 Apple 在 2012 年破产后,我真的不明白这一点:)

The level documentation for both projects is appalling.

However, since SproutCore is now supported by Apple, and Apple are rather good at providing good documentation, I expect this to change.

Cap, however has a released real world app (280Slides) which you can have a play with to get an idea of how you should structure your application. So at this point its probably easier to get started with Cap especially since you know objective-c.

Be aware that for both projects, the number of out-of-the-box controls are very limited, so you'll find yourself implementing your own. Also, SproutCore is ugly by default!

Personally, I think that the Cap approach is excellent.

You don't need to write any HTML or CSS. It genuinely feels like you are writing a desktop app and by coding in objective-js you're essentially abstracted from the browser.

However, I'm not a fan of the language itself. I would have preferred it if they had stuck with pov JavaScript.

I understand that Mac developers will like the potential portability of the code you create with Cap however since Apple go bust in 2012, I don't really see the point :)

原来分手还会想你 2024-07-17 14:05:51

是的...我觉得如果我选择 SproutCore,我将不得不花更多的时间来学习 Javascript 的怪癖,而不是 Objective-J。

既然您已经在 Obj-J 上呆过一段时间了……它与 Obj-C 有多接近,与 Javascript 有何不同? (我问你是因为我想要某人的真实生活经历......而不是维基所说的:))

Yeah...I feel like if I go with SproutCore, I would have to spend some more time learning the quirks of Javascript, as opposed to Objective-J.

Since you've spent time in Obj-J...How close is it to Obj-C and how different is it than Javascript? (I ask you because I want someone's real-life experience...not what the wiki says :) )

暖伴 2024-07-17 14:05:51

我尝试了两者,但我必须承认两者都需要更多改进。 只是补充一下我的观点:

Sproutcore 的

  • 优点:
    • 标准 JS/CSS/HTML 网页开发
    • 由 Apple 赞助,未来可能会更好
    • 错误的文档
    • 与卡布奇诺相比,没有那么多抽象

与卡布奇诺相比,卡布奇诺

    • Objective-J(不涉及网络技术,不涉及 CSS...)
    • 完整的抽象
  • 缺点:
    • 错误的文档
    • 需要学习 Objective-J(没那么难)
    • Objective-J 的布局很糟糕!

I tried both and I must confess the two need more improvement. Just to add my points :

Sproutcore

  • pros:
    • standard JS/CSS/HTML web development
    • Sponsored by Apple, may be better for the future
  • cons :
    • Bad documentation
    • Not so much abstraction compared to Cappuccino

Cappuccino

  • pros:
    • Objective-J (no web technologies involved, no CSS...)
    • Complete abstraction
  • cons:
    • Bad documentation
    • need to learn Objective-J (not so difficult)
    • Objective-J sucks for layouts!
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文