使用受版权保护的代码

发布于 2024-10-04 06:16:32 字数 1459 浏览 1 评论 0原文

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

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

发布评论

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

评论(2

怀中猫帐中妖 2024-10-11 06:16:32

除了“去问律师”的一般建议之外,这里还有一些其他的想法。

我不是律师,但作为高级产品线经理,我有责任决定何时与律师讨论某事。

  • 如果您在一家拥有专职律师的公司工作,那么与他们交谈总是一个好主意。通常您需要先与您的经理讨论。如果您在产品开发团队中,那么您还应该与您的产品经理交谈。

  • 一般来说,不存在公共域代码这样的东西。相反,每一段代码都应该有许可证。

回复:我可以使用 Microsoft 示例代码吗? 可以,正如他们的网页所述:.NET Framework 文档包含代码示例,您可以直接从主题复制这些代码示例并将其粘贴到您自己的项目中。< /code> - 引用自您在原始问题中引用的他们的网页。

补充:MS 网站上的一行是其许可证的摘要。实际的许可证更长,并且拒绝对代码可能做什么或不做什么、适用性等负责。但是一行摘要,特别是对于示例代码,已经足够清楚了。

回复:我可以使用博客中的代码示例吗 是或否。博客应该包含其软件发布的许可证。有些人这样做,很多人不这样做。如果他们不这样做,请考虑写信给博主并询问诸如哪个许可证涵盖您博客中的软件示例? BSD 许可证(来自 Yahoo 的示例:http://developer.yahoo.com/yui/license.html)或类似的?

您建议博主考虑 BSD 许可证的原因是它非常开放。但是,例如,博主可能会回来说:“我的示例已获得 GPL 3 许可。”

在这种情况下,如果您使用博主的代码,您将受到 GPL 3 的约束。

补充:我可以使用 StackOverflow 中的软件示例吗? 根据上述内容,您应该从博主那里寻找软件许可证。你猜怎么着? Stack Overflow 上有一个。请参阅每个 SO 页面底部的法律链接。在“法律”页面上,请参阅第 3 节“订阅者内容”。该部分为您提供了 SO 上所有代码示例的许可证。

结论 如果您想生活在软件作者的许可范围内,那么您需要知道这些许可是什么。如果您不知道,那么您将面临实际上没有使用/重新许可该软件的权利的风险。

另一个问题是“我必须始终拥有我正在使用的软件的适当许可证吗?”这个问题的答案取决于很多事情。简单的答案是“是”,特别是如果您在任何政府、公共或私人机构工作。当然,作为社会的正式成员,您也应该只使用许可软件,原因显而易见。

例如,假设您在博客上看到一些示例代码。该代码对您非常有用。你想用它。但博客上的代码没有许可证。您给博主写信,但没有得到回复。你能用吗?您可以,但存在软件所有者(博客作者)可能决定起诉您的风险(可能很小)。那么真正的问题是,我应该承担商业风险吗?这是一个商业决策,而不是一个技术决策。一个合理的商业决策可能是:“是的,让我们使用该软件并承担出现问题的风险。”

添加:Microsoft 公共许可证 - Microsoft (MS) 通过其“Microsoft 公共许可证”许可其示例代码。也称为 Ms-PL。 许可证。引用 Ms-PL 的 .Net 示例示例。 Microsoft 示例代码的另一个示例

In addition to the general advice of "go ask a lawyer," here are some other thoughts.

I am not a lawyer, but I am responsible, as a senior product line manager, for making the decision of when to discuss something with a lawyer.

  • If you work at a company that has staff lawyers, then it is always a fine idea to go talk to them. Usually you'll want to discuss with your manager first. If you're in a product development group then you should also talk with your product manager.

  • Generally speaking, there is no such thing as public domain code. Rather, every bit of code should have an license.

Re: can I use Microsoft sample code? Yes, as their web page says: The .NET Framework documentation includes code examples that you can copy directly from topics and paste into your own projects. -- Quoted from their web page that you referenced in your original question.

Added: The one liner from the MS site is a summary of their license. The actual license is longer and refuses responsibility for what the code may or may not do, suitability, etc etc. But the one line summary, especially for sample code, is clear enough.

Re: can I use code samples from blogs Yes and no. Blogs should include a license for their software postings. Some do, many do not. If they don't, consider writing to the blogger and asking something like Which license covers your software examples from your blog? The BSD license (example from Yahoo: http://developer.yahoo.com/yui/license.html) or similar?

The reason you'd suggest that the blogger consider the BSD license is that it is very open. But, for example, the blogger could come back and say, "My examples are licensed under GPL 3."

In that case, you'd be bound by GPL 3 if you use the blogger's code.

Added: Can I use software examples from StackOverflow? Per the above, you should look for a software license from the blogger. And guess what? There is one for Stack Overflow. See the Legal link at the bottom of each SO page. On the Legal page, see section 3, "Subscriber content." That section gives you the license for all code samples on SO.

Conclusion If you want to be living within the licenses from the sw writers, then you need to know what those licenses are. If you don't know, then you run the risk of not actually having the right to use/re-license the software.

A different question, is "must I always have a proper license for software that I'm using?" The answer to that question depends on many things. The simple answer, especially if you work for any government, public or private institution is "yes." And, of course, as a proper member of society, you should also only use licensed software, for the obvious reasons.

Suppose, for instance, you see some sample code on a blog. The code is very useful to you. You want to use it. But there is no license for the code on the blog. You write the blogger, but get no reply. Can you use it? You could, but there is a risk (probably small), that the software's owner (the blogger) could decide to sue you. So then the real question is, should I assume the business risk? That's a business decision, not a technical decision. A reasonable business decision might then be, "Yes, let's use the software and take the risk of a problem."

Added: Microsoft Public license-- Microsoft (MS) licenses its sample code via its "Microsoft Public License." Also known as the Ms-PL. The license. Example of a .Net sample referring to the Ms-PL. Another example of Microsoft sample code.

长发绾君心 2024-10-11 06:16:32

我怀疑复制某人的“Hello World”或“如何连接到数据库”代码会产生很大的版权问题,示例代码通常会提供基础知识。这里的问题是,用编程语言做某事的方法只有这么多,只要您不直接复制代码的重要部分,就应该没问题。

I doubt copying somebody's "Hello World" or "How to connect to a database" code would be much of a copyright issue, and example code usually gives the basics. The issue here is that there are only so many ways to do something in a programming language, as long as you're not directly copying significant portions of code you should be fine.

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