人们可以在 Sproutcore/Cappuccino 中使用您的 javascript 代码吗?

发布于 2024-09-19 07:18:25 字数 120 浏览 12 评论 0原文

如果您使用 Sproutcore 或 Cappuccino 作为前端,是不是意味着每个人都可以看到您的 javascript 并复制它?

如果是这样,他们将拥有您的整个前端代码。

我是对还是错?

If you use either Sproutcore or Cappuccino for your frontend, doesn't it mean that everyone could see your javascript and copy it?

If so, they'll have your whole frontend code.

Am I right or wrong?

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

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

发布评论

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

评论(5

空气里的味道 2024-09-26 07:18:25

在网络上,如果您不将前端代码提供给用户,那么它就不是前端代码。不过,完全没有理由担心这一点——网络从第一天起就是这样,而且一直表现得很好。专注于制造好产品并引起关注。

On the web, if you don't give your frontend code to your user, it's not frontend code. There is no reason at all to worry about that though - the web has been like that since day one and it has been doing just fine. Focus on making a good product and getting noticed.

随遇而安 2024-09-26 07:18:25

你是对的。网页中的 javascript 在客户端上运行 - 因此它需要可由客户端下载。根据定义,客户拥有“您的整个前端代码”。

尝试使 JavaScript 难以阅读(因此难以复制)的通常过程称为混淆。对于浏览器来说,混淆的 javascript 与非混淆的 javascript 相同 - 因此它可以与任何 javascript 框架同样良好地工作。

You are right. The javascript in your web pages runs on the client - so it needs to be downloadable by the client. By definition, clients have 'your whole frontent code'.

The usual process of trying to make your javascript hard to read (and therefore copy) is called obfuscation. Obfuscated javascript is the same as non-obfuscated javascript to the browser - so it will work equally well with any javascript framework.

说谎友 2024-09-26 07:18:25

你是对的。而且,对于普通的 javascript 来说也是如此。

You are right. Also, this is true of plain javascript.

岛徒 2024-09-26 07:18:25

请记住,“编译的”Cappuccino / Objective-J 代码与原始代码非常不同,因此任何人从 Cappuccino 应用程序复制部分并重用它都不是一件容易的事。

Keep in mind that the "compiled" Cappuccino / Objective-J code is very different to the original code so it's not really easy for anyone to copy parts from your Cappuccino app and reuse it.

软甜啾 2024-09-26 07:18:25

最终,这并不是一个值得关注的大问题。在大多数情况下,重写代码比尝试从源代码复制打包代码要容易得多。 Apple 将 SproutCore 用于其 MobileMe 工具这一事实意味着他们发现风险很小。我们都知道苹果是多么喜欢保守秘密:)

Ultimately, this isn't really a big issue of concern. In most cases it's far easier to just rewrite the code than to try to copy the packed code from the source. The fact that Apple uses SproutCore for their MobileMe tools would imply that they've found the risk to be minimal. We all know how much Apple likes to keep things to themselves :)

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