5 ms·
What's the licensing of these samples? Perhaps consider CC0? https://creativecommons.org/choose/zero https://creativecommons.org/choose/zero I think CC0 would
by rectang 12y ago
What's the licensing of these samples?
Perhaps consider CC0? https://creativecommons.org/choose/zero https://creativecommons.org/choose/zero I think CC0 would allow them to be reused in any project no matter the license, without requiring attribution. Do others agree with that?
Regardless, best practice for a project which uses any of these samples would be to record the origin in version control, even if credit is not given in the project source code.
It's really important that sample code have clean provenance, since others will be inserting it into their own projects then possibly mutating it and making it difficult to extract. Are these samples all completely original? And will there be any IP controls as far as what you accept for Github pull requests?
(edit: don't try to use markdown for links.)
- sftrabbit 12y agoThe samples are all very short and generic, so I'm not sure how legal significance a copyright license will have. However, I do plan to add a license to the repository if only to make it clearer. Is CC0 appropriate for code? I was thinking of going with MIT, but that would require retaining the license in any derivative works. Anybody have thoughts on this matter?
- detaro 12y agoFSF recommends CC0 for small code snippets in documentation: https://www.gnu.org/licenses/license-recommendations.html#documentation https://www.gnu.org/licenses/license-recommendations.html#do...
- rectang 12y agoThanks! Here are a couple more resources on the subject: https://creativecommons.org/weblog/entry/27081 https://creativecommons.org/weblog/entry/27081 http://labs.creativecommons.org/2011/05/28/fsf-recommends-cc0-for-code-snippets-in-documentation.html http://labs.creativecommons.org/2011/05/28/fsf-recommends-cc...
- vog 12y agoA single, trivial code snippet may not carry a copyright at all. But a whole collection of such snippets will fall under copyright, even if each individual bit alone wouldn't qualify. So it is important to make the licensing explicit here. CC0 / Public Domain is a natural choice, given that the code snippets are meant to be used individually and that no "real" license would make any sense on individual code snippets.